File tree 1 file changed +9
-11
lines changed
1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change
1
+
1
2
name : 部署文档
2
3
3
4
on :
@@ -16,39 +17,36 @@ jobs:
16
17
uses : actions/checkout@v3
17
18
with :
18
19
fetch-depth : 0
20
+ # 如果你文档需要 Git 子模块,取消注释下一行
21
+ # submodules: true
19
22
20
23
- name : 设置 pnpm
21
24
uses : pnpm/action-setup@v2
22
25
with :
23
26
version : 8
24
27
28
+
25
29
- name : 设置 Node.js
26
30
uses : actions/setup-node@v3
27
31
with :
28
- node-version : 20
32
+ node-version : 21
29
33
cache : pnpm
30
34
31
- - name : 禁用 Corepack
32
- run : |
33
- corepack disable
34
-
35
- - name : 启用 Corepack
36
- run : |
37
- corepack enable
38
-
39
35
- name : 安装依赖
40
36
run : |
37
+ corepack enable
41
38
pnpm install --frozen-lockfile
42
39
43
40
- name : 构建文档
44
41
env :
45
42
NODE_OPTIONS : --max_old_space_size=8192
46
43
run : |-
47
44
pnpm run build
48
- > src/.vuepress/ dist/.nojekyll
45
+ > dist/.nojekyll
49
46
50
47
- name : 部署文档
51
48
uses : JamesIves/github-pages-deploy-action@v4
52
49
with :
50
+ # 部署文档
53
51
branch : gh-pages
54
- folder : src/.vuepress/ dist
52
+ folder : dist
You can’t perform that action at this time.
0 commit comments