Skip to content

Commit e20b43a

Browse files
authored
Update deploy-docs.yml
1 parent 4921e05 commit e20b43a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/deploy-docs.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: 部署文档
23

34
on:
@@ -16,39 +17,36 @@ jobs:
1617
uses: actions/checkout@v3
1718
with:
1819
fetch-depth: 0
20+
# 如果你文档需要 Git 子模块,取消注释下一行
21+
# submodules: true
1922

2023
- name: 设置 pnpm
2124
uses: pnpm/action-setup@v2
2225
with:
2326
version: 8
2427

28+
2529
- name: 设置 Node.js
2630
uses: actions/setup-node@v3
2731
with:
28-
node-version: 20
32+
node-version: 21
2933
cache: pnpm
3034

31-
- name: 禁用 Corepack
32-
run: |
33-
corepack disable
34-
35-
- name: 启用 Corepack
36-
run: |
37-
corepack enable
38-
3935
- name: 安装依赖
4036
run: |
37+
corepack enable
4138
pnpm install --frozen-lockfile
4239
4340
- name: 构建文档
4441
env:
4542
NODE_OPTIONS: --max_old_space_size=8192
4643
run: |-
4744
pnpm run build
48-
> src/.vuepress/dist/.nojekyll
45+
> dist/.nojekyll
4946
5047
- name: 部署文档
5148
uses: JamesIves/github-pages-deploy-action@v4
5249
with:
50+
# 部署文档
5351
branch: gh-pages
54-
folder: src/.vuepress/dist
52+
folder: dist

0 commit comments

Comments
 (0)