Last active
August 9, 2016 04:37
-
-
Save sbogacz/577b0ffa43091f355a2c0cd1c58ded71 to your computer and use it in GitHub Desktop.
Hugo automation makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: build sync-s3 invalidate-cache | |
clean: | |
@rm -rf \ | |
public | |
build: | |
hugo -v | |
sync-s3: | |
aws s3 sync --acl "public-read" --sse "AES256" public/ "s3://$(S3_BUCKET)" --exclude 'post' | |
invalidate-cache: | |
aws configure set preview.cloudfront true | |
aws cloudfront create-invalidation --distribution-id $(CF_DISTRIBUTION) --paths /index.html / "/page/*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment