Last active
November 13, 2016 18:04
-
-
Save nfrankel/a94ce35becf68f8f4cbd290e9a149d45 to your computer and use it in GitHub Desktop.
Git post commit hook to generate site from README.doc
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/sh | |
git checkout gh-pages | |
git checkout master -- README.adoc | |
asciidoctor README.adoc | |
mv README.html index.html | |
git add index.html | |
git commit -m "Update site with documentation" | |
git push origin HEAD --force | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment