From 6312f031c0db50c2b8c7a0ee2b60ab4731ae7337 Mon Sep 17 00:00:00 2001 From: kcwww Date: Sun, 21 Apr 2024 14:32:39 +0900 Subject: [PATCH] fix: s3 upload --- .github/workflows/tempFrontDeploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tempFrontDeploy.yml b/.github/workflows/tempFrontDeploy.yml index 63b9105..ac53630 100644 --- a/.github/workflows/tempFrontDeploy.yml +++ b/.github/workflows/tempFrontDeploy.yml @@ -45,14 +45,13 @@ jobs: env: BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }} run: | + 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 '*.mp3.gz' --content-encoding 'gzip' --content-type 'audio/mpeg' - - - name: CloudFront Invalidation env: CLOUD_FRONT_ID: ${{ secrets.AWS_CLOUDFRONT_ID}}