Skip to content

Commit

Permalink
[#85] Fix: 배포 시 S3에 기존 정적 파일을 제거하도록 변경 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
mungmnb777 authored Feb 6, 2024
1 parent 5723e29 commit 6c59a0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-resource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
- name: Upload to S3
env:
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
run: aws s3 sync ./dist s3://$BUCKET_NAME
run: |
aws s3 rm s3://$BUCKET_NAME/assets/ --recursive
aws s3 sync ./dist s3://$BUCKET_NAME
- name: CloudFront Invalidation
env:
Expand Down

0 comments on commit 6c59a0a

Please sign in to comment.