gancio/release.sh

15 lines
525 B
Bash
Raw Normal View History

2021-12-07 16:36:34 +01:00
RELEASE=v$(cat package.json | jq ".version" | sed -e 's/"//g')
echo "Releasing $RELEASE"
2022-08-14 15:51:05 +02:00
rm -fr node_modules
yarn
2021-12-07 16:36:34 +01:00
yarn build
yarn pack
2022-08-14 15:51:05 +02:00
# yarn publish
gpg --pinentry-mode loopback --passphrase `pass underscore/pgp` --detach-sign --local-user 5DAC477D5441B7A15ACBF680BBEB4DD39AC6CCA9 gancio-$RELEASE.tgz
2021-12-07 16:36:34 +01:00
cp gancio-$RELEASE.tgz releases/
mv gancio-$RELEASE.tgz releases/latest.tgz
cp gancio-$RELEASE.tgz.sig releases/
mv gancio-$RELEASE.tgz.sig releases/latest.tgz.sig
2022-08-14 15:51:05 +02:00
yarn doc
2022-08-30 12:02:52 +02:00
rsync -a docs/_site/ gancio.org:/var/www/gancio/