👷 add gh-pages action (#1418)

This commit is contained in:
Kuitos 2021-04-25 00:17:49 +08:00 committed by GitHub
parent 8800d8587d
commit acdd5672cf

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

@ -0,0 +1,20 @@
name: Qiankun Github Pages Deploy
on:
push:
branches:
- master
jobs:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: |
yarn
yarn docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist