Skip to content

Commit

Permalink
Invalidate cloudfront cache after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Nordhoff committed Jun 16, 2023
1 parent a2f3e4d commit 62c0d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ jobs:
role-to-assume: ${{ secrets.DEPLOY_ROLE }}
- name: 📂 Sync files to S3
run: aws s3 sync ./build_artifact/ s3://tmm-frontend --delete
- name: Invalidate Cloudfront Cache
run: aws cloudfront create-invalidation --distribution-id=${{ secrets.DISTRIBUTION_ID }} --paths /

0 comments on commit 62c0d57

Please sign in to comment.