Skip to content

Commit fec8ae1

Browse files
committed
Update ci.yml
1 parent 55b7e52 commit fec8ae1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ jobs:
119119

120120
- name: Upload files to R2
121121
run: |
122+
ORIGINAL_SIZE=$(du -sb ./dist/${{ env.PLUGIN_NAME }} | cut -f1)
122123
zip -r ${{ env.PLUGIN_NAME }}.zip ./dist/${{ env.PLUGIN_NAME }}
124+
setfattr -n user.original_size -v "$ORIGINAL_SIZE" ${{ env.PLUGIN_NAME }}.zip
123125
124-
# Upload specific files
125-
aws s3 cp ./${{ env.PLUGIN_NAME }}.zip s3://${{ secrets.R2_BUCKET_NAME }}/ \
126-
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com
126+
aws s3 cp ./${{ env.PLUGIN_NAME }}.zip s3://${{ secrets.R2_BUCKET_NAME }}/ --endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com
127127
128128
- name: Upload Plugin Artifact
129129
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)