Hacker News new | ask | show | jobs
by rickette 3864 days ago
I'm interested to hear what folks use to kickoff Hugo for sites hosted on GitHub Pages? TravisCI, CircleCI, etc?

This considering GH pages has build-in support for Jekyll but not for other static site generators.

5 comments

Give netlify a try https://www.netlify.com

It's like GitHub pages on steroids (SSL, redirects/rewrite rules, proxying, domain aliases, etc, etc...). It'll run any build tool for you (not just Jekyll) and we have built-in support for Hugo:

https://www.netlify.com/blog/2015/10/06/a-step-by-step-guide...

Disclaimer: I'm a founder :)

I like Wercker which works well on github pages, s3 and ssh. There's a good tutorial at https://gohugo.io/tutorials/automated-deployments/

I just used this technique for https://stevefrancia.com and the wercker files are at https://github.com/spf13/stevefrancia.com

I just build locally and push the results to GitHub. Master branch is the generated site, hugo branch is for the code.
I use a git hook that builds locally on commits to master (with some cleaning just in case I was testing weird things from non-master). I host on s3, but I don't think the s3 transfer vs github push is of great consequence here.
Wercker's a great option with Aerobatic & Bitbucket. Here's a blog post on how to set it all up: http://www.aerobatic.com/blog/hugo-continuous-integration-wi...

disclaimer: I work for Aerobatic