[ci skip] Add local script to push release

This commit is contained in:
Davide De Rosa 2021-11-28 19:38:19 +01:00
parent f5b9ba0eba
commit a199955b2d
1 changed files with 23 additions and 0 deletions

23
scripts/push-release.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Version required"
exit
fi
if !(git checkout master && git tag -as "$VERSION" -m "Release"); then
echo "Error while tagging release"
exit
fi
if !(git push && git push github); then
echo "Error while pushing master"
exit
fi
if !(git push --tags && git push --tags github); then
echo "Error while pushing tags"
exit
fi
if !(git checkout stable && git merge master && git push github); then
echo "Error while pushing stable"
exit
fi
git checkout master