Skip to content

Commit

Permalink
Merge pull request #10 from rgoshen/add-compression
Browse files Browse the repository at this point in the history
Add compression
  • Loading branch information
rgoshen authored Nov 10, 2024
2 parents b74caf5 + 9878232 commit 6ec3e53
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy-to-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,13 @@ jobs:
# Step 7: Sync files to S3 (this step will sync only the ./dist folder)
- name: Sync files to S3
run: |
aws s3 sync ./dist s3://rsgoshen.us --delete
# Sync original and compressed files
aws s3 sync ./dist s3://rsgoshen.us --delete --exclude "*.gz" --exclude "*.br"
# Upload .gz files with Content-Encoding set to gzip
aws s3 cp dist s3://rsgoshen.us --recursive --exclude "*" --include "*.gz" \
--content-encoding gzip --metadata-directive REPLACE
# Upload .br files with Content-Encoding set to br
aws s3 cp dist s3://rsgoshen.us --recursive --exclude "*" --include "*.br" \
--content-encoding br --metadata-directive REPLACE

0 comments on commit 6ec3e53

Please sign in to comment.