Skip to content

Commit

Permalink
Invalidate AWS CloudFront cache on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Apr 5, 2024
1 parent c531f83 commit d677394
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ jobs:
--content-type="application/wasm" --metadata-directive="REPLACE" \
s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/ \
s3://${{ secrets.AWS_S3_BUCKET }}/_webr/${{ github.ref_name }}/
aws cloudfront create-invalidation --distribution-id \
${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/latest/*" \
"/${{ github.ref_name }}/*"
deploy_docs:
name: Deploy webR documentation to S3
needs: build
Expand Down

0 comments on commit d677394

Please sign in to comment.