2018-11-14 13:16:51 -08:00
#! /bin/bash
echo git tag -a \" v$( grep -oE 'versionName.*' zcash-android-wallet-app/app/build.gradle | sed 's/[^0-9]*\([0-9].*\w\).*/\1/' ) \" -m \" " Released on $( date) " \"
echo
2018-12-10 18:10:54 -08:00
read -p "TAG the release as above? Press y to tag ENTER to skip: [N] " -n 1 -r
2018-12-10 09:22:41 -08:00
if [ [ $REPLY = ~ ^[ Yy] $ ] ]
then
git tag -a v$( grep -oE 'versionName.*' zcash-android-wallet-app/app/build.gradle | sed 's/[^0-9]*\([0-9].*\w\).*/\1/' ) -m " Release on $( date) "
2018-12-11 11:19:58 -08:00
echo
2018-12-10 09:22:41 -08:00
echo "build tagged"
else
2018-12-11 11:19:58 -08:00
echo
2018-12-10 09:22:41 -08:00
echo "tag not created!"
fi
echo
read -p "PUSH TAG and TRIGGER BUILD to the wallet-team-members slack channel? [N] " -n 1 -r
if [ [ $REPLY = ~ ^[ Yy] $ ] ]
then
echo
git push origin --tags
echo "Tags pushed, build triggered. Opening bitrise to verify..."
xdg-open "https://app.bitrise.io/app/3f9040b242d98534#/builds"
else
2018-12-11 11:19:58 -08:00
echo
2018-12-10 09:22:41 -08:00
echo "tag not pushed!"
fi
echo
2018-12-11 11:19:58 -08:00
echo "Done!"
echo
2018-11-14 13:16:51 -08:00