Automatically yeoman build into gh-pages using travis-ci

Goal:

This blog is is written in Jekyll. Github automatically builds the site when I commit, and what you are reading is the built version. I want that for normal web apps, but I want to use yeoman. The end result being, every time I commit to the master branch, I want the yeoman build output to land in my gh-pages branch. In this case, I’m using travis-ci.org to do the building, and I want to use a yeoman generator to do the setup for me, so that getting auto build/deploy working on new projects is as simple as:


yeoman init travis-ci:gh-pages