-
-
Save pcwitcher/95a11fc29edd371b5c7f920fb19ee855 to your computer and use it in GitHub Desktop.
Github Pages auto-deploy
This file contains hidden or 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: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/checkout@v2 | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn build | |
| - uses: JamesIves/github-pages-deploy-action@releases/v3 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment