Skip to content

Commit dfd845d

Browse files
WEBSITE: Updated deploy workflow to invalidate cloudfront cache on changes
1 parent b4420af commit dfd845d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/website.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ jobs:
2525

2626
- name: Deploy to S3
2727
run: aws s3 sync website/ s3://${{ secrets.AWS_S3_BUCKET }} --delete
28+
29+
- name: Invalidate CloudFront cache
30+
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"

0 commit comments

Comments
 (0)