homepage/deploy

18 lines
263 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