diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-02 20:50:42 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-02 20:50:42 +0800 |
| commit | 6b7af76728de0dc087d3c1b2e3dd1eed4250d968 (patch) | |
| tree | cef159c104514faf4aaee32eca02f1feb57d16cf /scripts/post-receive | |
| parent | 89799d80427938f95bf70950919078a94d207be4 (diff) | |
| download | 42-6b7af76728de0dc087d3c1b2e3dd1eed4250d968.tar.xz 42-6b7af76728de0dc087d3c1b2e3dd1eed4250d968.zip | |
add post-receive git hook script
Diffstat (limited to 'scripts/post-receive')
| -rw-r--r-- | scripts/post-receive | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/post-receive b/scripts/post-receive new file mode 100644 index 0000000..72494b8 --- /dev/null +++ b/scripts/post-receive @@ -0,0 +1,6 @@ +#!/bin/bash + +git --work-tree=/home/steve/blog --git-dir=/home/steve/blog.git checkout -f +git push + +jekyll build -s /home/steve/blog -d /home/steve/blog/_site |
