Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Dec 24, 2024
1 parent e0ce454 commit 7f84d85
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7f84d85

Please sign in to comment.