Skip to content

Commit

Permalink
chore: fix site build
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Dec 7, 2024
1 parent 01ac1c3 commit 299a97c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,15 @@ jobs:
git-user: czy88840616
git-password: ${{ secrets.GH_TOKEN }}
deployment-branch: gh-pages
- name: qiniu upload
uses: zhangwj0520/action-qiniu-upload@main
- name: 执行上传
uses: luochongfei/up2qn@master
with:
# Your qiniu access key, required.
bucket: ${{ secrets.QINIU_BUCKET }}
zone: 东南亚
access_key: ${{ secrets.QINIU_ACCESS_KEY }}
# Your qiniu secret key, required.
secret_key: ${{ secrets.QINIU_SECRET_KEY }}
# Bucket name, required.
bucket: ${{ secrets.QINIU_BUCKET }}
# 是否覆盖已有文件
is_cover : true
# The local directory (or file) you want to upload to bucket.
# Default: './dist'
source_dir: 'site/build'
# The directory inside of the bucket you want to upload to, namely key prefix prepended to dest file key.
# Default: '/'
dest_dir: '/'
# Whether to ignore source maps.
# Default: true
ignore_source_map: true

local_dir: 'site/build'
target_dir: /
- name: Zip output
run: zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars
working-directory: site
Expand Down
11 changes: 7 additions & 4 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 299a97c

Please sign in to comment.