Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsloop-ss committed Feb 4, 2024
1 parent 14d0e2e commit ea60f06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
run: hugo

- name: Deploy to S3
run: hugo deploy --target prod # Change target to a var if you have multiple target envs
run: |
aws s3 ls site-prod-devopsloop-site-origin
aws s3 cp public/ s3://site-prod-devopsloop-site-origin?region=us-east-1
hugo deploy --target prod # Change target to a var if you have multiple target envs
- name: Invalidate CloudFront cache (optional)
run: aws cloudfront create-invalidation --distribution-id ${{secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID}} --paths "/*"

0 comments on commit ea60f06

Please sign in to comment.