Skip to content

Update package.json #109

Update package.json

Update package.json #109

name: Deploy to gh-pages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy-gh-pages:
name: Deploying to gh-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo npm install -g yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build and deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}