Skip to content

Commit

Permalink
fix: yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kcwww committed Apr 21, 2024
1 parent 9a6b266 commit a7c188e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/tempFrontDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ jobs:
env:
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
run: |
# Upload all files first, then apply specific settings for compressed files
aws s3 sync ./front/dist s3://$BUCKET_NAME --delete
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' --include '*.js.gz' --content-encoding 'gzip' --content-type 'application/javascript'
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' --include '*.svg.gz' --content-encoding 'gzip' --content-type 'image/svg+xml'
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' --include '*.ico.gz' --content-encoding 'gzip' --content-type 'image/x-icon'
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' --include '*.ttf.gz' --content-encoding 'gzip' --content-type 'font/ttf'
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' --include '*.woff.gz' --content-encoding 'gzip' --content-type 'font/woff'
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' --include '*.mp3.gz' --content-encoding 'gzip' --content-type 'audio/mpeg'
aws s3 sync ./front/dist s3://$BUCKET_NAME --exclude '*' \
--include '*.js.gz' --content-encoding 'gzip' --content-type 'application/javascript' \
--include '*.svg.gz' --content-encoding 'gzip' --content-type 'image/svg+xml' \
--include '*.ico.gz' --content-encoding 'gzip' --content-type 'image/x-icon' \
--include '*.ttf.gz' --content-encoding 'gzip' --content-type 'font/ttf' \
--include '*.woff.gz' --content-encoding 'gzip' --content-type 'font/woff' \
--include '*.mp3.gz' --content-encoding 'gzip' --content-type 'audio/mpeg'
- name: CloudFront Invalidation
env:
Expand Down

0 comments on commit a7c188e

Please sign in to comment.