Skip to content

Commit c0b9e6d

Browse files
McNaBrysamuelim01
andauthored
Add cloudfront cache invalidation to frontend workflow
Co-authored-by: samuelim01 <[email protected]>
1 parent 57e3e74 commit c0b9e6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/frontend.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ jobs:
4040
- name: Sync distribution to S3
4141
run: |
4242
aws s3 sync ./frontend/dist/frontend/browser/ s3://$S3_BUCKET_NAME --delete
43+
44+
- name: Invalidate Cloudfront Cache
45+
run: |
46+
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID }} --paths "/*"

0 commit comments

Comments
 (0)