Skip to content

Instantly share code, notes, and snippets.

@nfrankel
Last active November 13, 2016 18:04
Show Gist options
  • Save nfrankel/a94ce35becf68f8f4cbd290e9a149d45 to your computer and use it in GitHub Desktop.
Save nfrankel/a94ce35becf68f8f4cbd290e9a149d45 to your computer and use it in GitHub Desktop.
Git post commit hook to generate site from README.doc
#/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