publish_new_release.sh: show current latest published release and provide the link to follow build process
This commit is contained in:
parent
6d925d86e4
commit
df27bd4632
1 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue