Skip to content

Instantly share code, notes, and snippets.

@mikeblum mikeblum/deploy.sh
Created Jul 4, 2017

Embed
What would you like to do?
Deploying a Hugo blog to S3
#!/bin/bash
export S3_BUCKET=
# clean public build dir
rm -rf public
# rebuild site
hugo
# 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
You can’t perform that action at this time.