From: Jannik ZANDER Date: Wed, 1 Jan 2020 22:52:53 +0000 (+0100) Subject: Update deploy.sh X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=c96be5c222cd588ef29bf5e4065f30deacc45a87;p=vuepress.git Update deploy.sh --- diff --git a/deploy.sh b/deploy.sh index ead66ce..9000ab1 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,12 +1,18 @@ #!/usr/bin/env sh +curDate=`date --iso-8601` +curDir=`git rev-parse --show-toplevel` # abort on errors set -e - echo "Building..." yarn build echo "Copying files..." -rm -rf $HOME/public/* -cp -R build/* $HOME/public +cd $HOME/projects/website +git rm -rf . +git clean -fxd +git reset +cp -R $curDir/build/* . +git add -A && git commit -m"Site updated: ""$curDate" +git push