Hugo - Deploy Blog to s3

Reading time ~1 minute

Howdy! I’ve moved my site to Hugo! I’ve also deployed it using AWS’ static site hosting.

Here’s a few easy aliases to deploy your static hugo blog to AWS

alias myblog="cd ~/Documents/myblogfolder"
alias deployblog="myblog && hugo && aws s3 sync ./public s3://your-aws-website-bucketn && rm -r ./public"

This also assumes you’ve got that bucket configured to use your website.

comments powered by Disqus