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