I wrote up a little tutorial that shows how to set up a Hugo site with GitHub and CircleCI. In this particular instance, I’m deploying to Aerobatic, but of course, you could deploy anywhere. Here’s what my circle.yml
file looks like.
dependencies:
pre:
- wget https://github.com/spf13/hugo/releases/download/v0.18/hugo_0.18-64bit.deb
- sudo dpkg -i hugo*.deb
- npm install -g aerobatic-cli
deployment:
master:
branch: master
commands:
- git clone https://github.com/rakuishi/hugo-zen.git themes/hugo-zen
- hugo --theme=hugo-zen --baseURL https://__baseurl__ --buildDrafts
- aero deploy -d public
And, in case you’re interested, here’s the complete blog post.