Skip to content

Commit

Permalink
GHA: Set gzip encoding on R.bin.wasm in AWS S3
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Aug 6, 2024
1 parent 6566a6a commit 2e127b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ jobs:
- name: Upload files to S3 bucket
run: |
aws s3 sync . s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/
gzip -k R.bin.wasm
aws s3 cp --content-encoding="gzip" --content-type="application/wasm" \
--metadata-directive="REPLACE" R.bin.wasm.gz \
s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/R.bin.wasm
aws s3 cp --exclude "*" --include "*.js.metadata" --recursive \
--content-type="text/javascript" --metadata-directive="REPLACE" \
s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/ \
s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/
aws s3 cp --exclude "*" --include "*.data" --include "*.so" --recursive \
--content-type="application/wasm" --metadata-directive="REPLACE" \
s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/ \
Expand Down

0 comments on commit 2e127b0

Please sign in to comment.