An internal font hosting site for Codeberg
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.
 
 
 
 

20 lines
496 B

#!/bin/bash -ex
# This script is derived from deploy.sh in Codeberg Documentation by The Codeberg Documentation Contributors,
# under CC-BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/deed.en
npm run build
if [ ! -d pages.git ]; then
mkdir pages.git && cd pages.git
git init && git remote add origin "git@codeberg.org:codeberg-fonts/pages.git"
cd ..
fi
rsync -av _site/* pages.git/
cd pages.git
git add -A
git commit -am "Deployment at $(date -u -Is)"
git push origin main -f