Deploy a static subdirectory to GitHub pages
August 15, 2014Update 8 Feb 2015
I came back to some projects after many months where I had used this method, and I was running into errors complaining about COMMIT_SHA is not an ancestor of commit
when running the git subtree split
command. I did some more research and found what I think is a superior method in the form of this shell script. The new method also allows the build directory to not be checked in to the git repository which I think keeps things cleaner.
So I packaged the shell script as an npm module so it can be installed to devDependencies
and used it the same way as the previous method.