simplify and sign release

This commit is contained in:
lesion 2021-12-07 16:36:34 +01:00
parent 467534d1f7
commit a7815a12cb
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 13 additions and 5 deletions

View file

@ -1,11 +1,7 @@
- change version in package.json - change version in package.json
- add changes to CHANGELOG / changelog.md - add changes to CHANGELOG / changelog.md
- yarn build ./release.sh
- yarn pack
- yarn publish
- yarn doc
- git add . - git add .
- git ci -m 'v...' - git ci -m 'v...'
- git tag ... - git tag ...
- git push --tags - git push --tags
-

12
release.sh Executable file
View file

@ -0,0 +1,12 @@
RELEASE=v$(cat package.json | jq ".version" | sed -e 's/"//g')
echo "Releasing $RELEASE"
yarn build
yarn pack
yarn publish
yarn doc
gpg --detach-sign --local-user 5DAC477D5441B7A15ACBF680BBEB4DD39AC6CCA9 gancio-$RELEASE.tgz
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
rsync -a docs/_site/ gancio.org:/var/www/gancio/