Skip to content

Commit

Permalink
WIP: AWS gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Apr 5, 2024
1 parent a365c02 commit 983f593
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ jobs:
AWS_CLOUDFRONT_DISTRIBUTION_ID: "E2SN9UWE8YY9EG"
run: |
pip install awscli
gzip -k _shinylive/r/shinylive/webr/library.data
aws s3 sync _shinylive s3://shinylive.io/_debug --delete
aws s3 cp --exclude "*" --include "*.data" --include "*.so" --recursive --content-type="application/wasm" --metadata-directive="REPLACE" s3://shinylive.io/_debug/r/shinylive/webr/ s3://shinylive.io/_debug/r/shinylive/webr/
aws s3 cp --exclude "*" --include "*.js.metadata" --recursive --content-type="text/javascript" --metadata-directive="REPLACE" s3://shinylive.io/_debug/r/shinylive/webr/ s3://shinylive.io/_debug/r/shinylive/webr/
aws s3 cp --content-encoding="gzip" --content-type="application/wasm" --metadata-directive="REPLACE" _shinylive/r/shinylive/webr/library.data.gz s3://shinylive.io/_debug/r/shinylive/webr/library.data
aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/_debug/*"
# =====================================================
Expand Down

0 comments on commit 983f593

Please sign in to comment.