This commit is contained in:
qiaofeng1227 2024-09-03 15:16:19 +08:00
parent 75f69bc6ac
commit fb2dee1fbc

View file

@ -124,15 +124,15 @@ jobs:
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'
# release media step2
- name: Upload To Azure Blob
uses: LanceMcCarthy/Action-AzureBlobUpload@v2
- name: Upload To cloudflare r2
uses: ryand56/r2-upload-action@latest
with:
connection_string: ${{ secrets.AZURE_STORAGE_ARTIFACT }}
container_name: ${{ env.CHANNEL }}
source_folder: media/
destination_folder: ./websoft9/plugin/media
delete_if_exists: true
fail_if_source_empty: true
r2-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.CLOUDFLARE_SECRET_ID }}
r2-secret-access-key: ${{ secrets.CLOUDFLARE_SECRET_KEY }}
r2-bucket: artifact
source-dir: artifacts
destination-dir: ./${{ env.CHANNEL }}/websoft9/plugin/media
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'
##------------ special task for apphub end----------------------#