Skip to content

Instantly share code, notes, and snippets.

@KonradLinkowski
Last active September 24, 2022 11:35
Show Gist options
  • Save KonradLinkowski/4b2b825d2540c4eecfc5dc1f9e42a87f to your computer and use it in GitHub Desktop.
Save KonradLinkowski/4b2b825d2540c4eecfc5dc1f9e42a87f to your computer and use it in GitHub Desktop.
Github Pages auto-deploy
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
@KonradLinkowski
Copy link
Author

KonradLinkowski commented Aug 13, 2020

How to use:

  1. Copy this snippet to .github/workflows/deploy.yml.
  2. Stonks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment