It is a work replicated from this link, however, modified to my own needs. In adddion, it offers automation on the build process and push from travis back to Github repository while the output is created. To set-up auto-push for travis consider reading the tutorial found here (Section: Auto-deploying gh-pages with Travis (Linux distros)). Feel free to mdify it and use it for your own purposes.
Contact: sgeorgiou(at)aueb.gr, sgeorgiou(at).singularlogic.eu, and stefanos1316(at)gmail.com