Skip to content

Instantly share code, notes, and snippets.

@3l-d1abl0
Created March 21, 2021 15:36
Show Gist options
  • Save 3l-d1abl0/b3c7f6ab7ad94a94b2b572c28d57a6c4 to your computer and use it in GitHub Desktop.
Save 3l-d1abl0/b3c7f6ab7ad94a94b2b572c28d57a6c4 to your computer and use it in GitHub Desktop.
build:
rm -rf public
hugo
deploy: build
aws s3 sync public/ s3://<your_bucket> --acl public-read --delete
aws configure set preview.cloudfront true
aws cloudfront create-invalidation --distribution-id <distributionId> --paths '/*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment