Skip to content

Commit 7cf3a1d

Browse files
author
zhiwen.zhao
committed
feat: 使用 github actions 自动触发文档站点部署
1 parent e2f80bc commit 7cf3a1d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/gh-pages.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master # default branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: npm install
14+
- run: npm run build:site
15+
- name: Deploy
16+
uses: peaceiris/actions-gh-pages@v3
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
publish_dir: ./doc-site

0 commit comments

Comments
 (0)