Last active
August 29, 2015 13:58
-
-
Save optikfluffel/9953679 to your computer and use it in GitHub Desktop.
After setting up my gh-pages branch according to a short howto from chrisjacob (https://gist.github.com/chrisjacob/825950) I added this little post-commit hook to automatically update the docs generated from ex_doc for a little Elixir playground I have.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git checkout master | |
mix docs | |
cd docs/ | |
git checkout gh-pages | |
git add . | |
git commit -m "update documentation" | |
git push origin gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment