Skip to content

Commit

Permalink
Create cloudfront distribution invalidation to dev workflow
Browse files Browse the repository at this point in the history
gMonty committed Jan 13, 2025
1 parent 6c5aa8b commit 14bb593
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
@@ -53,6 +53,11 @@ jobs:
if: github.ref == 'refs/heads/master'
run: aws s3 sync out s3://${{ secrets.AWS_DEV_BUCKET_NAME }}/current --delete

- name: 'Cloudfront Production: cache invalidation'
if: (startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'release')
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.DEV_AWS_CLOUDFRONT_ID }} --paths "/*"
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

0 comments on commit 14bb593

Please sign in to comment.