Skip to content

Commit 6f34930

Browse files
committed
docs: update pages
1 parent d033e44 commit 6f34930

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/pages.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
build:
1212
name: Build Docusaurus
1313
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: website # 设置默认工作目录
1417
steps:
1518
- uses: actions/checkout@v4
1619
with:
@@ -19,16 +22,18 @@ jobs:
1922
with:
2023
node-version: 22
2124
cache: yarn
25+
cache-dependency-path: website/yarn.lock # 指定 yarn.lock 的路径
2226

2327
- name: Install dependencies
24-
run: cd website && yarn install --frozen-lockfile
28+
run: yarn install --frozen-lockfile
29+
2530
- name: Build website
26-
run: cd website && yarn build
31+
run: yarn build
2732

2833
- name: Upload Build Artifact
2934
uses: actions/upload-pages-artifact@v3
3035
with:
31-
path: website/build
36+
path: website/build # 构建输出路径
3237

3338
deploy:
3439
name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)