Created
May 21, 2015 07:04
-
-
Save srijanshetty/d5b1122274e68b20e18d to your computer and use it in GitHub Desktop.
Git Hook for pdf2htmlEX
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
if [[ $branch == "master" ]]; then | |
xelatex cv | |
git checkout gh-pages | |
pdf2htmlEX --process-outline 0 --zoom 1.6 cv.pdf | |
mv cv.html index.html | |
git add index.html | |
git commit -m "Update to Website" | |
git push origin gh-pages | |
git checkout master | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment