Skip to content

Commit

Permalink
Merge pull request #19 from Mahad-10/create-invalidation
Browse files Browse the repository at this point in the history
create invalidation on new deployment
  • Loading branch information
Mahad-10 authored Jun 4, 2024
2 parents 5a86b21 + d291e51 commit f3a5012
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ jobs:

- name: Deploy static site to S3 bucket
run: aws s3 cp ./site/ s3://${{ secrets.AWS_BUCKET }} --recursive

- name: Invalidate CloudFront
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/xconn/ruby/*"

0 comments on commit f3a5012

Please sign in to comment.