From c96be5c222cd588ef29bf5e4065f30deacc45a87 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Wed, 1 Jan 2020 23:52:53 +0100 Subject: [PATCH] Update deploy.sh --- deploy.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 -- 2.43.0