Skip to content

Instantly share code, notes, and snippets.

@unixbigot
Created November 28, 2019 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unixbigot/fa096167c4cef55850c4359d83d9c325 to your computer and use it in GitHub Desktop.
Save unixbigot/fa096167c4cef55850c4359d83d9c325 to your computer and use it in GitHub Desktop.
AWS_PROFILE?=unixbigot
CLOUDFRONT?=EQ6KJ3VCZA0W1
test:
hugo server
build:
hugo
upload:
aws s3 sync --acl public-read public/ s3://news.accelerando.com.au/news/
list:
aws cloudfront list-invalidations --distribution-id $(CLOUDFRONT) | grep InProgress
flush:
aws cloudfront create-invalidation --distribution-id $(CLOUDFRONT) --paths '/news/*'
push: build upload flush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment