Skip to content

Commit

Permalink
Add cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing committed Oct 2, 2023
1 parent 0cfd6cb commit 6ca6c30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ jobs:

- name: Deploy to S3
run: aws s3 sync ./dist/ s3://${{ secrets.BUCKET_ID }}

- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/developers /developers/*"

0 comments on commit 6ca6c30

Please sign in to comment.