Skip to content

Instantly share code, notes, and snippets.

Created Jul 4, 2017
What would you like to do?
Deploying a Hugo blog to S3
export S3_BUCKET=
# clean public build dir
rm -rf public
# rebuild site
# destructively sync with S3 bucket
# (anything not mirrored on the local filesystem will be deleted)
aws s3 sync public/ s3://$S3_BUCKET/ --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment