Solidground / Floorplanner / Groundwork main project website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
369 B

#!/usr/bin/env bash
rm -rf pages.git _site
jekyll build
DATE=$(date -u -Is)
git clone $REPO pages.git
rsync -av _site/* pages.git/
cd pages.git &&
git checkout --orphan current &&
git add -A &&
git commit -m "Deployment at $DATE" &&
git branch -m pages &&
git push -f origin pages &&
cd .. &&
rm -rf pages.git