[skip ci] updated deploy script

This commit is contained in:
surtur 2020-03-10 04:06:54 +01:00
parent af4389b453
commit 0b35630798
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

10
deploy

@ -1,11 +1,17 @@
#!/bin/sh
USER=dotyaoverlord
USR=dotyaoverlord
HOST=dotya.ml
DIR=public/
git submodule init
git submodule update
../hugo --gc=true --minify && rsync -avz --delete public/ ${USER}@${HOST}:~/${DIR}
../hugo --gc=true --minify
if [ $USER == $USR ]; then
rsync -av --delete public/ ~/${DIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${DIR}
fi
exit 0