Skip to content

Instantly share code, notes, and snippets.

@pcwitcher
Forked from KonradLinkowski/deploy.yml
Created December 24, 2020 16:47
Show Gist options
  • Select an option

  • Save pcwitcher/95a11fc29edd371b5c7f920fb19ee855 to your computer and use it in GitHub Desktop.

Select an option

Save pcwitcher/95a11fc29edd371b5c7f920fb19ee855 to your computer and use it in GitHub Desktop.
Github Pages auto-deploy
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