build: updated tagging script used to trigger builds

This commit is contained in:
Kevin Gorham 2018-12-10 12:22:41 -05:00
parent 3283b81acd
commit 40d8406800
2 changed files with 26 additions and 5 deletions

View File

@ -2,8 +2,29 @@
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
echo "Press ENTER to tag the release as above. Press CTRL+C to cancel."
read -p "TAG the release as above? Press y to tag ENTER to skip: [N] "
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)"
echo "build tagged"
else
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
echo "tag not pushed!"
fi
echo
read
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)"

View File

@ -13,8 +13,8 @@ android {
applicationId "cash.z.android.wallet"
minSdkVersion buildConfig.minSdkVersion
targetSdkVersion buildConfig.targetSdkVersion
versionCode 12 // todo: change this to 1_00_04 format, once we graduate beyond zero for the major version number because leading zeros indicate on octal number.
versionName "0.2.0-alpha"
versionCode 14 // todo: change this to 1_00_04 format, once we graduate beyond zero for the major version number because leading zeros indicate on octal number.
versionName "0.2.1-alpha"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}