Update ci.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Actions Build and Deploy Demo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build and Deploy | |
uses: JamesIves/github-pages-deploy-action@master | |
env: | |
ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist | |
BUILD_SCRIPT: npm install && npm run build |