Create gh-pages.yml

This commit is contained in:
xrkffgg
2021-01-28 15:25:47 +08:00
committed by GitHub
parent 13e635fb2c
commit 321da097ae

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

@@ -0,0 +1,17 @@
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