Skip to content

Commit

Permalink
Merge pull request #1862 from zexi/upload-oss
Browse files Browse the repository at this point in the history
publish to OSS
  • Loading branch information
zexi authored Dec 7, 2023
2 parents db59d34 + 8a5190e commit d9026a0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,19 @@ jobs:
# deploy config
AWS_REGION: 'ap-east-1'
SOURCE_DIR: 'public'

- name: Publish site to Aliyun OSS
uses: Menci/upload-to-oss@beta-v1
# https://github.com/marketplace/actions/upload-files-to-aliyun-oss-incremental
with:
# Use Access Key
access-key-id: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
local-path: public
remote-path: ''
# Retry 5 times on failure of each OSS operation
retry: 5
# Use increment or not
increment: true

0 comments on commit d9026a0

Please sign in to comment.