aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGNUxeava <bluenerd@protonmail.com>2022-03-14 06:50:06 +0530
committerGNUxeava <bluenerd@protonmail.com>2022-03-14 06:50:06 +0530
commit9e4925a85d9bc6020267392887824ebba3938ce4 (patch)
treee583bae00ba0ccc0d1dded896d4c17495bf50358
initial commit
-rw-r--r--hugo-deploy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/hugo-deploy.sh b/hugo-deploy.sh
new file mode 100644
index 0000000..e7e9644
--- /dev/null
+++ b/hugo-deploy.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+USER=remote-user
+HOST=remote-host.tld
+DIR=/remote/deployment/directory
+
+hugo && rsync -Pavz -delete public/ ${USER}@${HOST}:${DIR}
+
+exit 0