publish_new_release.sh: show current latest published release and provide the link to follow build process

This commit is contained in:
Benjamin Renard 2024-10-17 14:26:52 +02:00
parent 6d925d86e4
commit df27bd4632
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -29,6 +29,8 @@ echo "Update git repo:"
git pull
echo "done."
echo "Latest published release: $( /usr/bin/git tag | tail -n 1 )"
LATEST="$1"
if [ -z "$LATEST" ]
@ -38,10 +40,10 @@ then
echo done.
fi
echo "Latest release: $LATEST"
echo "Latest upstream release: $LATEST"
[ -n "$( /usr/bin/git tag -l "$LATEST" )" ] && echo "Release $LATEST already exists" && exit 1
echo "Press [enter] to create and publish this new release"
echo "Press [enter] to create and publish this new release $LATEST"
read
echo "Create new release..."
@ -55,3 +57,6 @@ echo "Publish new release..."
/usr/bin/git push
/usr/bin/git push --tags
echo done.
echo "Not release $LATEST published. Follow build process there:"
echo "https://gitea.zionetrix.net/bn8/forgejo_debian_packager/actions"