[ci skip] Add local script to push release
This commit is contained in:
parent
f5b9ba0eba
commit
a199955b2d
|
@ -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
|
Loading…
Reference in New Issue