Skip to content

Commit

Permalink
Invalidate cloudfront
Browse files Browse the repository at this point in the history
  • Loading branch information
AshMartian committed Nov 24, 2023
1 parent be512ef commit 8c9a9c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
shell: bash
run: |
aws s3 sync dist/ ${AWS_BUCKET} --delete
aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths "/*"
env:
AWS_BUCKET: ${{ secrets.AWS_BUCKET }}
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
AWS_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 8c9a9c4

Please sign in to comment.