Skip to content

Commit

Permalink
chore: create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu188 committed Sep 3, 2023
1 parent 41658ca commit 84e58b4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build And Deploy To Github Pages

on:
push:
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist

0 comments on commit 84e58b4

Please sign in to comment.