Before I state my question, I'd like to point out that I may be going about my goal entirely wrong, so please let me know if I am.
What I'm trying to do is to have my personal website pull in code from a github repo that I'm going to set up for an HTML5/JavaScript game. Whenever I commit to the repo, I'd like for the site to pull in the updated code and serve that up to users. I saw in another similar question how to link directly to the source files on GitHub, but I feel like this would be an unfair abuse of GitHub's hosting capabilities.
So, would this be some kind of chron job or script that I have running on the site? Or does GitHub perhaps provide some sort of API that could trigger a callback to git-pull on a commit?