Last active
September 24, 2022 11:35
-
-
Save KonradLinkowski/4b2b825d2540c4eecfc5dc1f9e42a87f to your computer and use it in GitHub Desktop.
Github Pages auto-deploy
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main # change to your desired branch name | |
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 install script | |
- run: yarn build # run build script | |
# npm version: | |
#- run: npm ci | |
#- run: npm run build | |
- uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
BRANCH: gh-pages | |
FOLDER: dist # your output folder name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use:
.github/workflows/deploy.yml
.