deployment script defaults to prod

This commit is contained in:
fnetx 2021-11-17 00:01:14 +01:00
parent cdb301cc29
commit 5dfe62bb8b
No known key found for this signature in database
GPG key ID: 03870C95EE9F2661

View file

@ -1,8 +1,9 @@
#!/bin/bash -ex
npm run build
REPO=${1:-git@codeberg.org:docs/pages}
rm -rf pages.git
git clone $1 pages.git
git clone $REPO pages.git
rsync -av _site/* pages.git/
( cd pages.git && git checkout --orphan current ) ## create new branch at origin
( cd pages.git && git add -A ) ## add all generated files