We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b854570 commit d2d8aa2Copy full SHA for d2d8aa2
.github/workflows/.deploy_stack.yml
@@ -132,6 +132,13 @@ jobs:
132
S3_BUCKET_ARN: ${{ needs.deploy.outputs.S3_BUCKET_ARN }}
133
CF_DISTRIBUTION_ID: ${{ needs.deploy.outputs.CF_DISTRIBUTION_ID }}
134
run: |
135
+ BUCKET=$(echo "$S3_BUCKET_ARN" | cut -d: -f6)
136
npm run deploy
- aws s3 sync --delete ./dist s3://$(echo "$S3_BUCKET_ARN" | cut -d: -f6)
137
+ aws s3 cp ./dist/index.html s3://$BUCKET/index.html \
138
+ --cache-control "no-cache, must-revalidate" \
139
+ --content-type "text/html"
140
+ aws s3 sync ./dist s3://$BUCKET \
141
+ --exclude "index.html" \
142
+ --cache-control "public, max-age=31536000, immutable" \
143
+ --delete
144
aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths "/*"
0 commit comments