Outreach 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
365 B

#!/usr/bin/env bash
rm -rf pages.git _site
jekyll build
REPO=${1:-git@codeberg.org:solidground/getoutreach}
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