Skip to content

Commit

Permalink
ci: clear cloudfront cache on deploy
Browse files Browse the repository at this point in the history
Otherwise, the content is not updated in production.
  • Loading branch information
regisb committed Apr 18, 2024
1 parent 31105e7 commit 96c990a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ jobs:

- name: Sync build assets with S3
run: aws s3 sync --delete _build/academy/ s3://${{ secrets.ACADEMY_S3_BUCKET }}/academy/

- name: Clear cloudfront cache
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.ACADEMY_CLOUDFRONT_DISTRIBUTION }} --paths "/academy/*"

0 comments on commit 96c990a

Please sign in to comment.