Skip to content

Commit 32e4461

Browse files
authored
Update deploy.yml
1 parent d095471 commit 32e4461

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
# 在针对 `main` 分支的推送上运行。如果你
77
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
88
push:
9-
branches: [pages]
9+
branches: [main]
1010

1111
# 允许你从 Actions 选项卡手动运行此工作流程
1212
workflow_dispatch:
@@ -32,21 +32,21 @@ jobs:
3232
uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
35-
- uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
36-
with:
37-
version: 9
35+
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
36+
# with:
37+
# version: 9
3838
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
3939
- name: Setup Node
4040
uses: actions/setup-node@v4
4141
with:
4242
node-version: 22
43-
cache: pnpm # 或 pnpm / yarn
43+
cache: npm # 或 pnpm / yarn
4444
- name: Setup Pages
4545
uses: actions/configure-pages@v4
4646
- name: Install dependencies
47-
run: pnpm install # 或 pnpm install / yarn install / bun install
47+
run: npm ci # 或 pnpm install / yarn install / bun install
4848
- name: Build with VitePress
49-
run: pnpm docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
49+
run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
5050
- name: Upload artifact
5151
uses: actions/upload-pages-artifact@v3
5252
with:

0 commit comments

Comments
 (0)