Moar hooks
This commit is contained in:
parent
164541fa39
commit
70c075c620
1 changed files with 9 additions and 0 deletions
9
_githooks/post-receive
Executable file
9
_githooks/post-receive
Executable 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
|
Loading…
Add table
Reference in a new issue