diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8670a6916..481831f64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -399,8 +399,13 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: auto run: | - # Sync the deploy directory to the Cloudflare bucket - CRC32 is required for the checksum-algorithm on cloudflare (ref. https://community.cloudflare.com/t/an-error-occurred-internalerror-when-calling-the-putobject-operation/764905/8) - aws s3 sync deploy/ s3://${{ secrets.CF_BUCKET_PREVIEW }}/${{ steps.build-plugin.outputs.BUCKET_PATH }} --endpoint-url ${{ secrets.CF_ENDPOINT }} --checksum-algorithm CRC32 + # Sync the deploy directory to the Cloudflare bucket with explicit content encoding and public-read ACL + aws s3 sync deploy/ s3://${{ secrets.CF_BUCKET_PREVIEW }}/${{ steps.build-plugin.outputs.BUCKET_PATH }} \ + --endpoint-url ${{ secrets.CF_ENDPOINT }} \ + --checksum-algorithm CRC32 \ + --no-guess-mime-type \ + --content-encoding none \ + --acl public-read - name: Upload Release Assets if: needs.release-please.outputs.releases_created == 'true' diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 13cacc852..afe417780 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -99,7 +99,12 @@ jobs: AWS_DEFAULT_REGION: ${{ secrets.DO_SPACE_REGION }} AWS_ENDPOINT_URL: https://${{ secrets.DO_SPACE_REGION }}.digitaloceanspaces.com run: | - aws s3 sync . s3://${{ secrets.DO_SPACE_NAME }}/unraid-api --checksum-algorithm CRC32 + # Upload files with explicit content encoding and public-read ACL + aws s3 sync . s3://${{ secrets.DO_SPACE_NAME }}/unraid-api \ + --checksum-algorithm CRC32 \ + --no-guess-mime-type \ + --content-encoding none \ + --acl public-read - name: Upload Release Files to Cloudflare Bucket env: @@ -108,4 +113,9 @@ jobs: AWS_DEFAULT_REGION: auto AWS_ENDPOINT_URL: ${{ secrets.CF_ENDPOINT }} run: | - aws s3 sync . s3://${{ secrets.CF_BUCKET }}/unraid-api --checksum-algorithm CRC32 + # Upload files with explicit content encoding and public-read ACL + aws s3 sync . s3://${{ secrets.CF_BUCKET }}/unraid-api \ + --checksum-algorithm CRC32 \ + --no-guess-mime-type \ + --content-encoding none \ + --acl public-read