Skip to content

Commit

Permalink
Deploy on release creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymaynard committed Aug 30, 2024
1 parent 5a83c5c commit 2911fdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy to AWS

on:
push:
branches:
- main
release:
types:
- created

jobs:
deploy:
Expand Down Expand Up @@ -41,4 +41,4 @@ jobs:
run: aws s3 sync ./dist s3://${{ secrets.S3_BUCKET_NAME }} --delete --acl public-read

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

0 comments on commit 2911fdc

Please sign in to comment.