neilhanlon.me/deploy.sh
Neil Hanlon a5633fb9fa
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CI.. or something
2022-11-11 16:15:35 -05:00

24 lines
375 B
Bash

#!/bin/bash -ex
REMOTE=$(git remote get-url origin)
rm -fr pages.git
mkdir pages.git
( cd pages.git && git init -b pages )
rsync -av public/* pages.git
cat << EOF > pages.git/.domains
neilhanlon.me
neilhanlon.com
hanlon.ninja
thepotato.tech
EOF
cd pages.git
git add -A
git commit -m "Deployment at $(date -u -Is)"
git remote add origin $REMOTE
git push -f origin pages