Skip to content

Commit

Permalink
use Hugo built-in CF invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
stebunovd committed Jan 6, 2024
1 parent de49492 commit 1981cb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: hugo && hugo deploy && aws cloudfront create-invalidation --distribution-id E2KMNX4POSU4ZD --paths "/*" —-debug
run: hugo && hugo deploy

# Send notification on build or deploy failure
- name: Notify slack fail
Expand Down
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ disableKinds = ['taxonomy', 'term']
[[deployment.targets]]
name = "s3"
URL = "s3://stebunov.com?region=eu-north-1"
cloudFrontDistributionID = "E2KMNX4POSU4ZD"

0 comments on commit 1981cb1

Please sign in to comment.