From 6b7af76728de0dc087d3c1b2e3dd1eed4250d968 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Sat, 2 Dec 2017 20:50:42 +0800 Subject: add post-receive git hook script --- scripts/post-receive | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/post-receive (limited to 'scripts') 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 -- cgit v1.2.3