Add deploy script

This commit is contained in:
this.ven 2024-04-01 14:16:18 +02:00
parent 93ed61e555
commit 483403522d

11
deploy Executable file
View file

@ -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/