From a7815a12cbc4cca7956e0aa27db1fe6ee62b5c95 Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 7 Dec 2021 16:36:34 +0100 Subject: [PATCH] simplify and sign release --- RELEASE.md | 6 +----- release.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100755 release.sh diff --git a/RELEASE.md b/RELEASE.md index 2736e4cb..73fc626c 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,11 +1,7 @@ - change version in package.json - add changes to CHANGELOG / changelog.md -- yarn build -- yarn pack -- yarn publish -- yarn doc +./release.sh - git add . - git ci -m 'v...' - git tag ... - git push --tags -- diff --git a/release.sh b/release.sh new file mode 100755 index 00000000..19d9db28 --- /dev/null +++ b/release.sh @@ -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/ \ No newline at end of file