File tree Expand file tree Collapse file tree 2 files changed +221
-200
lines changed Expand file tree Collapse file tree 2 files changed +221
-200
lines changed Original file line number Diff line number Diff line change 6
6
# 在针对 `main` 分支的推送上运行。如果你
7
7
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
8
8
push :
9
- branches : [master]
9
+ branches : [ master ]
10
10
11
11
# 允许你从 Actions 选项卡手动运行此工作流程
12
12
workflow_dispatch :
@@ -32,21 +32,24 @@ jobs:
32
32
uses : actions/checkout@v4
33
33
with :
34
34
fetch-depth : 0 # 如果未启用 lastUpdated,则不需要
35
- # - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
36
- # with:
37
- # version: 9
35
+ - uses : pnpm/action-setup@v3
36
+ with :
37
+ version : 9
38
38
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
39
39
- name : Setup Node
40
40
uses : actions/setup-node@v4
41
41
with :
42
42
node-version : 20
43
- cache : pnpm # 或 pnpm / yarn
43
+ cache : ' pnpm'
44
+ cache-dependency-path : ' docs/pnpm-lock.yaml'
44
45
- name : Setup Pages
45
46
uses : actions/configure-pages@v4
46
47
- name : Install dependencies
47
- run : pnpm install # 或 pnpm install / yarn install / bun install
48
+ working-directory : docs
49
+ run : pnpm install
48
50
- name : Build with VitePress
49
- run : pnpm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
51
+ working-directory : docs
52
+ run : pnpm run docs:build
50
53
- name : Upload artifact
51
54
uses : actions/upload-pages-artifact@v3
52
55
with :
You can’t perform that action at this time.
0 commit comments