Skip to content

Commit 589ced1

Browse files
authored
Merge pull request #235 from Foxy/build/cloudfront-cache-invalidation-234
build: add CloudFront cache invalidation to the release action
2 parents 9674c4f + 78ada6e commit 589ced1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ jobs:
5454
AWS_S3_CDN_KEY_ID: ${{ secrets.AWS_S3_CDN_KEY_ID }}
5555
AWS_S3_CDN_KEY_SECRET: ${{ secrets.AWS_S3_CDN_KEY_SECRET }}
5656
SOURCE_DIR: 'dist/cdn'
57+
- name: Invalidate CloudFront cache
58+
env:
59+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_CDN_KEY_ID }}
60+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_CDN_KEY_SECRET }}
61+
AWS_DEFAULT_REGION: us-east-1
62+
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/elements*"

0 commit comments

Comments
 (0)