[skip ci] updated deploy script
This commit is contained in:
parent
af4389b453
commit
0b35630798
10
deploy
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
|
||||
|
Loading…
Reference in New Issue
Block a user