From 483403522db3a5afa33414cde6ad2caa64551dea Mon Sep 17 00:00:00 2001 From: "this.ven" Date: Mon, 1 Apr 2024 14:16:18 +0200 Subject: [PATCH] Add deploy script --- deploy | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 deploy diff --git a/deploy b/deploy new file mode 100755 index 0000000..410969a --- /dev/null +++ b/deploy @@ -0,0 +1,11 @@ +#!/bin/bash +# +# Locally builds the site and deploys it to Uberspace using rsync excluding any +# dot files in the destination +# https://gohugo.io/hosting-and-deployment/deployment-with-rsync/ + +SRC=public +# The host uberspace needs to be setup in ~/.ssh/config +DST="uberspace:~/this.ven.uber.space" + +hugo --cleanDestinationDir && rsync -avz --delete --exclude='.*' $SRC/ $DST/ \ No newline at end of file