Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 19 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /