File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
deploy :
10
- runs-on : ubuntu-18.04
10
+ runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v2
13
- - run : npm install
14
- # 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
15
- - run : npm run docs:build
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
+ # 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
21
+ run : npm run docs:build
16
22
- name : Deploy
17
23
uses : peaceiris/actions-gh-pages@v3
18
24
with :
19
25
github_token : ${{ secrets.ACCESS_TOKEN }}
26
+ user_name : ${{ secrets.MY_USER_NAME }}
27
+ user_email : ${{ secrets.MY_USER_EMAIL }}
20
28
# 文档目录,如果是 react 模板需要修改为 docs-dist
21
29
publish_dir : ./docs-dist
You can’t perform that action at this time.
0 commit comments