diff options
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | publish.sh | 17 |
diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..9ab2aa8 --- /dev/null +++ b/publish.sh @@ -0,0 +1,17 @@ +#!/usr/bin/sh
+
+set -e
+
+commit=`git log -n1 --format=%H`
+
+rm -rf public/*
+
+hugo --minify
+
+pushd public
+
+git add --all .
+git commit -m "Published from $commit"
+git push
+
+popd
|
