TEW-0x00/deploy
surtur 967442dff6
Some checks failed
continuous-integration/drone/push Build is failing
fix site not getting deployed
2020-03-25 23:07:18 +01:00

19 lines
329 B
Bash

#!/bin/bash
USR=dotyaoverlord
HOST=dotya.ml
PUBDIR=tew_0x00public/
rm -rfv ./public
mkdir -pv public
rsync -av index.html ./public
rsync -av ./pages ./public
rsync -av ./css ./public
if [ $USER = $USR ]; then
rsync -av --delete public/ ~/${PUBDIR}
else
rsync -avz --delete public/ ${USR}@${HOST}:~/${PUBDIR}
fi
exit 0