Deploy Hugo site to Github Pages with Travis CI

Update [2017-09-10]: This website is deploys by Netlify. This post contains old pipeline for deploying my static site. This website is powered by Hugo static site generator and hosted by Github Pages. Repository with the name username.github.io uses master branch as website content. You can also provide a Jekyll-based website to master branch, but I prefer to use the Hugo, due to its performance and features. Also, I like to keep both source and generated code in same repository in different branches.

reading time 2 min.