Skip to content

Merge remote-tracking branch 'origin/HEAD' #40

Merge remote-tracking branch 'origin/HEAD'

Merge remote-tracking branch 'origin/HEAD' #40

name: Auto build/publish gh-pages
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependecies and build
run: npm install --force && npm run build
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}