Skip to content

Commit

Permalink
Add cloudfront cache invalidation to frontend workflow
Browse files Browse the repository at this point in the history
Co-authored-by: samuelim01 <[email protected]>
  • Loading branch information
McNaBry and samuelim01 authored Oct 31, 2024
1 parent 57e3e74 commit c0b9e6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ jobs:
- name: Sync distribution to S3
run: |
aws s3 sync ./frontend/dist/frontend/browser/ s3://$S3_BUCKET_NAME --delete
- name: Invalidate Cloudfront Cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID }} --paths "/*"

0 comments on commit c0b9e6d

Please sign in to comment.