Skip to content

test-done

test-done #37

name: Deploy to GitHub Pages
on:
repository_dispatch:
types: [test-done]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install
- name: Build project
run: yarn build
- name: Build example
run: cd example && yarn install && yarn build
- name: Copy 404.html
run: cp example/build/index.html example/build/404.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_dir: example/build