chore: Update S3 copy command in build-linux workflow to disable checksums

- Modified the S3 copy command in the build-linux.yml workflow to set AWS_S3_DISABLE_CHECKSUMS to true, improving upload performance and consistency.
This commit is contained in:
Max 2025-05-18 18:45:07 +08:00
parent e1780db83b
commit aaf93f0240

View file

@ -26,6 +26,7 @@ jobs:
aws configure set default.region us-east-1 # Update with your R2 region if different
aws configure set default.s3.signature_version s3v4
aws configure set default.s3.endpoint_url https://$R2_ACCOUNT_ID.r2.cloudflarestorage.com
aws version
- name: Build
run: |
@ -43,5 +44,5 @@ jobs:
- name: Push To R2 Cloudflare
run: |
for file in /data/*; do
aws s3 cp $file s3://$R2_BUCKET/archives/ --endpoint-url https://$R2_ACCOUNT_ID.r2.cloudflarestorage.com
AWS_S3_DISABLE_CHECKSUMS=true aws s3 cp $file s3://$R2_BUCKET/archives/ --endpoint-url https://$R2_ACCOUNT_ID.r2.cloudflarestorage.com
done