Skip to content

Commit 21d219a

Browse files
author
wangshuhan
committed
chore: github actions
1 parent 9e43c09 commit 21d219a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master # default branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
# with:
15+
# 如果配置 themeConfig.lastUpdated 为 false,则不需要添加该参数以加快检出速度
16+
# fetch-depth: 0
17+
- name: Install dependencies
18+
run: npm install
19+
- name: Build with dumi
20+
run: npm run docs:build
21+
- name: Deploy
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: ./docs-dist

0 commit comments

Comments
 (0)