Skip to content

Commit

Permalink
GHA: add cloudfront cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
tseropian committed Dec 19, 2022
1 parent b1ed12a commit 45cf98b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/push.yml
Expand Up @@ -17,8 +17,6 @@ on:
required: true
default: 'warning'



# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
Expand All @@ -44,3 +42,10 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true

- name: Clear cache
run: aws cloudfront create-invalidation --distribution-id E28UPHZM89UKS0 --paths "/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true

0 comments on commit 45cf98b

Please sign in to comment.