gancio/release.sh

15 lines
555 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-12-23 10:49:18 +01:00
yarn publish
2022-08-14 15:51:05 +02:00
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-09-28 12:25:56 +02:00
rsync -a docs/_site/ --chown=www-data:www-data cisti.web:/var/www/gancio/
2022-12-23 10:49:18 +01:00
cd docs