Skip to content

Commit 54d5179

Browse files
committed
Tier 3: add CloudFront invalidation
1 parent e5b59dc commit 54d5179

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ jobs:
5151

5252
- name: Upload frontend to S3
5353
run: aws s3 sync Projects/task-tracker/frontend/dist/ s3://${{ secrets.S3_BUCKET }}/ --delete
54+
55+
- name: Invalidate CloudFront cache
56+
run: |
57+
aws cloudfront create-invalidation \
58+
--distribution-id "${{ secrets.CF_DISTRIBUTION_ID }}" \
59+
--paths "/*"

0 commit comments

Comments
 (0)