Skip to content

Workflow file for this run

on:
push:
branches:
- main
jobs:
deploy_on_gh_pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '16'
- uses: bahmutov/npm-install@v1
- run: yarn build
- run: echo $(node -e 'console.log(require("./package.json").homepage.match(/^https?:\/\/([^/]*)\/?$/)[1])') > build/CNAME
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p [email protected] gh-pages -d build -u "github-actions-bot <[email protected]>"