Github Pages Deploy #107
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: Github Pages Deploy | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v2 | |
| - name: Install and Build 🔧 | |
| run: | | |
| yarn install | |
| CI=false | |
| yarn build | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4.2.5 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: build # The folder the action should deploy. |