Add deploy script
This commit is contained in:
parent
93ed61e555
commit
483403522d
1 changed files with 11 additions and 0 deletions
11
deploy
Executable file
11
deploy
Executable 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/
|
Loading…
Reference in a new issue