Skip to content

Commit

Permalink
Fix release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed May 4, 2017
1 parent c36f19d commit 5439196
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,20 @@ function deploy_upload_apk() {
filename="${APK_ALIGNED}"
}

if ${BUILD:-true} ; then
# compile code and create apks
rm -rf -- api/build/* app/build/*
./gradlew assembleRelease generateDebugSources "$@"

# create tag for this version
git tag -a "$(format_version ${VERSION})" \
-m "Released version $(format_version ${VERSION})"

# increase app version for further development
echo "ext { appVersion = $VERSION_NEXT }" > app/version.gradle
git add app/version.gradle
git commit -m "Increase version to $VERSION_NEXT after release"
git push
git push --tags
fi
# compile code and create apks
rm -rf -- api/build/* app/build/*
./gradlew assembleRelease generateDebugSources "$@"

# create tag for this version
git tag -a "$(format_version ${VERSION})" \
-m "Released version $(format_version ${VERSION})"

# increase app version for further development
echo "ext { appVersion = $VERSION_NEXT }" > app/version.gradle
git add app/version.gradle
git commit -m "Increase version to $VERSION_NEXT after release"
git push
git push --tags

deploy_upload_apk

Expand Down

0 comments on commit 5439196

Please sign in to comment.