This little "workflow" will install a git pre-commit hook, and if a commit occurs it will run the build script.
To add the pre-commit hook, just run
grunt
After every single commit, now the build script will run, and regenerate the index.html. But you have to push that to github too!
Maybe adding a grunt job to commit&push the index.html as well? :)