Skip to content

Commit c34307d

Browse files
committed
add working dir to homepage-deploy.yml
1 parent 41878f2 commit c34307d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/homepage-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
branches: [main]
1010
paths:
1111
- 'homepage/**'
12+
- '.github/workflows/homepage-deploy.yml'
1213

1314
# 允许你从 Actions 选项卡手动运行此工作流程
1415
workflow_dispatch:
@@ -43,11 +44,14 @@ jobs:
4344
with:
4445
node-version: 22
4546
cache: pnpm # npm # 或 pnpm / yarn
47+
cache-dependency-path: homepage/pnpm-lock.yaml
4648
- name: Setup Pages
4749
uses: actions/configure-pages@v4
4850
- name: Install dependencies
51+
working-directory: homepage
4952
run: pnpm install # npm ci # 或 pnpm install / yarn install / bun install
5053
- name: Build with VitePress
54+
working-directory: homepage
5155
run: pnpm build # npm run build # 或 pnpm build / yarn build / bun run build
5256
- name: Upload artifact
5357
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)