Skip to content

Commit

Permalink
add: 添加自动更新到OSS
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Jan 6, 2024
1 parent b6f0d76 commit 9ae7025
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ jobs:
# 这是文档部署到的分支名称
branch: gh-pages
folder: src/.vuepress/dist

- name: OSS同步
uses: manyuanrong/[email protected]
with:
endpoint: ${{ secrets.OSS_ENDPOINT }}
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
- run: |
ossutil cp -r -f -u src/.vuepress/dist oss://${{ secrets.OSS_BUCKET }}

0 comments on commit 9ae7025

Please sign in to comment.