Skip to content

Commit

Permalink
cloudfront distribution invalidation added to CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
axelsomerseth committed May 13, 2024
1 parent 487cd25 commit 0839478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ jobs:
run: |
aws s3 sync ./build s3://${{ secrets.AWS_S3_BUCKET_NAME }}
# - name: 🧹 Invalidate CloudFront Distribution
# run: |
# aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} --paths '/*'
- name: 🧹 Invalidate CloudFront Distribution
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths '/*'

0 comments on commit 0839478

Please sign in to comment.