diff options
-rwxr-xr-x | .scripts/hugo-upload | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.scripts/hugo-upload b/.scripts/hugo-upload new file mode 100755 index 0000000..3c45a0f --- /dev/null +++ b/.scripts/hugo-upload @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +if [ -f .hugo_upload ]; then + source .hugo_upload + + rm -r public/ + hugo --quiet + + rsync -rtvzP public/ "$user@$host:$target_dir" +else + echo ".hugo_upload file not found in $(pwd)" +fi |