Skip to content

Commit 7f84d85

Browse files
committed
chore: update
1 parent e0ce454 commit 7f84d85

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/site.yml

+18-7
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,28 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
- run: npm install
29-
- run: npm run build --if-present
3028
- name: action-zip
3129
uses: montudor/[email protected]
32-
- run: cd site
33-
- run: pwd
34-
- run: npm install
35-
- run: npm run build
30+
31+
# 安装根目录依赖
32+
- name: Install root dependencies
33+
run: npm install
34+
35+
# 构建根目录项目
36+
- name: Build root project
37+
run: npm run build --if-present
38+
39+
# 安装和构建 site 目录
40+
- name: Install and build site
41+
working-directory: site
42+
run: |
43+
npm install
44+
npm run build
45+
46+
# 打包文档
3647
- name: Zip output
37-
run: zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars
3848
working-directory: site
49+
run: zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars
3950
- name: upload files to OSS
4051
uses: fangbinwei/aliyun-oss-website-action@v1
4152
with:

0 commit comments

Comments
 (0)