Skip to content

Commit e1ddcc9

Browse files
committed
fix(cd): add manifest.json to cache invalidation
1 parent d0c8e93 commit e1ddcc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ jobs:
8888
aws s3 cp s3://${{ env.BUCKET_NAME }} s3://${{ env.BUCKET_NAME }} --exclude "*" --include "*.html" --recursive --cache-control max-age=600,public
8989
9090
- name:
91-
Trigger CloudFront cache invalidation for index.html (all other files
92-
have unique names)
91+
Trigger CloudFront cache invalidation for fixed resources (all other
92+
files have unique names)
9393
run: |
9494
CLOUDFRONT_DISTRIBUTION=`aws cloudformation describe-stacks --stack-name ${{ vars.STACK_NAME }} | jq -r '.Stacks[0].Outputs[] | select(.OutputKey == "distributionId") | .OutputValue'`
95-
aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION} --paths /,/index.html
95+
aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION} --paths /,/index.html,/manifest.json

0 commit comments

Comments
 (0)