Skip to content

Commit

Permalink
feat: 使用 github actions 自动触发文档站点部署
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiwen.zhao committed Jul 3, 2021
1 parent e2f80bc commit 7cf3a1d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: github pages

on:
push:
branches:
- master # default branch

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run build:site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc-site

0 comments on commit 7cf3a1d

Please sign in to comment.