From: Jannik ZANDER Date: Thu, 23 Jul 2020 20:26:34 +0000 (+0200) Subject: rename X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=9b832501eba332369011c862a5a823f0223886dd;p=vuepress.git rename --- diff --git a/deploy.sh b/deploy.sh index 9000ab1..f97843f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,18 +1,22 @@ #!/usr/bin/env sh -curDate=`date --iso-8601` -curDir=`git rev-parse --show-toplevel` + +rootdir=`git rev-parse --show-toplevel` +htmldir=$HOME/projects/website # abort on errors set -e -echo "Building..." +echo "Building website..." yarn build -echo "Copying files..." -cd $HOME/projects/website +echo "Moving files..." +cd $htmldir git rm -rf . git clean -fxd git reset -cp -R $curDir/build/* . -git add -A && git commit -m"Site updated: ""$curDate" +mv $rootdir/build/* . +rmdir $rootdir/build +echo "Pushing files..." +git checkout master +git add -A && git commit -m"Site updated" git push diff --git a/docs/README.md b/docs/README.md index c476559..9105b20 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,7 +10,7 @@ title: 'Home' * [Cloud](https://cloud.zndr.dk) * [Mail](https://mail.zndr.dk) -* [Streaming](https://play.zndr.dk) +* [Play](https://play.zndr.dk) * [Git](https://git.zndr.dk) * [Databases](https://pma.zndr.dk) * [Users](https://pfa.zndr.dk)