homepage/deploy
surtur 52a288bc96
All checks were successful
continuous-integration/drone/push Build is passing
fix deploy script: strcmp works like so
2020-03-10 04:08:52 +01:00

18 lines
262 B
Bash
Executable File

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