-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0ce454
commit 7f84d85
Showing
1 changed file
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,28 @@ jobs: | |
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run build --if-present | ||
- name: action-zip | ||
uses: montudor/[email protected] | ||
- run: cd site | ||
- run: pwd | ||
- run: npm install | ||
- run: npm run build | ||
|
||
# 安装根目录依赖 | ||
- name: Install root dependencies | ||
run: npm install | ||
|
||
# 构建根目录项目 | ||
- name: Build root project | ||
run: npm run build --if-present | ||
|
||
# 安装和构建 site 目录 | ||
- name: Install and build site | ||
working-directory: site | ||
run: | | ||
npm install | ||
npm run build | ||
# 打包文档 | ||
- name: Zip output | ||
run: zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars | ||
working-directory: site | ||
run: zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars | ||
- name: upload files to OSS | ||
uses: fangbinwei/aliyun-oss-website-action@v1 | ||
with: | ||
|