From a7c188efaffb2c0e0dca4d0ea16d0f800072bd2f Mon Sep 17 00:00:00 2001 From: kcwww Date: Sun, 21 Apr 2024 15:50:55 +0900 Subject: [PATCH] fix: yml --- .github/workflows/tempFrontDeploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tempFrontDeploy.yml b/.github/workflows/tempFrontDeploy.yml index 95f79df..d14ff45 100644 --- a/.github/workflows/tempFrontDeploy.yml +++ b/.github/workflows/tempFrontDeploy.yml @@ -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: