ci: add auto gh pages

This commit is contained in:
xrkffgg
2021-05-08 20:06:39 +08:00
committed by GitHub
parent 1b100be0d7
commit 4a12f7e54a

19
.github/workflows/gh-pages.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs-dist