#!/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
* [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)