Skip to content

Commit 390b634

Browse files
authored
Merge pull request #184 from D3vPals/feat/#181
refactor : 압축 파일 헤더 메타데이터 추가 스크립트 재수정
2 parents 8470cc4 + c3b224f commit 390b634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/front_ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
original=$(echo "$file" | sed 's/\.gz$//')
6666
filename=$(basename "$original")
6767
echo "Uploading $file as $filename with Content-Encoding: gzip"
68-
aws s3 cp "$file" "s3://${BUCKET_NAME}/${filename}" \
68+
aws s3 cp "$file" "s3://${{ secrets.AWS_S3_BUCKET_NAME }}/${filename}" \
6969
--content-encoding gzip \
7070
--metadata-directive REPLACE \
7171
--cache-control "max-age=31536000"
@@ -76,7 +76,7 @@ jobs:
7676
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
7777
run: |
7878
echo "Uploading non-compressed files..."
79-
aws s3 sync dist/ s3://${BUCKET_NAME} --exclude "*.gz" --delete
79+
aws s3 sync dist/ s3://${{ secrets.AWS_S3_BUCKET_NAME }} --exclude "*.gz" --delete
8080
8181
- name: CloudFront Invalidation
8282
env:

0 commit comments

Comments
 (0)