]> git.zndr.dk Git - vuepress.git/commitdiff
rename
authorJannik ZANDER <jzander@grundfos.com>
Thu, 23 Jul 2020 20:26:34 +0000 (22:26 +0200)
committerJannik ZANDER <jzander@grundfos.com>
Thu, 23 Jul 2020 20:26:34 +0000 (22:26 +0200)
deploy.sh
docs/README.md

index 9000ab114b7c111437d7a25e230c4e677a752d76..f97843f0675a6c938c6d8c2a1704cec2157e0587 100755 (executable)
--- 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
 
index c47655995a51ab4384ff173f7318ea393aeca050..9105b203eb161737ac56307ce01439e44845ea06 100644 (file)
@@ -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)