diff options
| Commit | 635d1cd173acf87be1f6a96c718ae6cf0ca2f4f2 (patch) | |
|---|---|---|
| Author | 2018-08-31 19:49:16 +0300 | |
| Committer | 2018-08-31 19:49:16 +0300 | |
| Files | 6130cafb75f08622ac443a00d8149275ca7b7283 | |
| IPL-635d1cd173acf87be1f6a96c718ae6cf0ca2f4f2.tar IPL-635d1cd173acf87be1f6a96c718ae6cf0ca2f4f2.tar.gz IPL-635d1cd173acf87be1f6a96c718ae6cf0ca2f4f2.zip | ||
| Parent | fad71067ae43f5f96242812f78b8a28edb7a5d07 (diff) | |
Added publish script
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
|
