Moar hooks

This commit is contained in:
Ryan Voots 2016-09-10 16:11:01 -07:00
parent 164541fa39
commit 70c075c620

9
_githooks/post-receive Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash -l
GIT_REPO=$HOME/repositories/blog.git
TMP_GIT_CLONE=$HOME/tmp/git/blog
PUBLIC_WWW=/var/www/www/testbuild
git clone $GIT_REPO $TMP_GIT_CLONE
jekyll build --source $TMP_GIT_CLONE --destination $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit