File tree 1 file changed +18
-7
lines changed
1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,28 @@ jobs:
25
25
uses : actions/setup-node@v4
26
26
with :
27
27
node-version : ${{ matrix.node-version }}
28
- - run : npm install
29
- - run : npm run build --if-present
30
28
- name : action-zip
31
29
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
+ # 打包文档
36
47
- name : Zip output
37
- run : zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars
38
48
working-directory : site
49
+ run : zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars
39
50
- name : upload files to OSS
40
51
uses : fangbinwei/aliyun-oss-website-action@v1
41
52
with :
You can’t perform that action at this time.
0 commit comments