Skip to content
Snippets Groups Projects

Resolve "Put release tag on build step"

Merged Benoît Harrault requested to merge 7-put-release-tag-on-build-step into master
+ 3
3
@@ -84,10 +84,10 @@ application:release:
- VERSION_FILE="$(find . -name 'gradle.properties' | head -n1)"
- VERSION_NAME="$(grep '^app.versionName=' "${VERSION_FILE}" | cut -d'=' -f2)"
- VERSION_CODE="$(grep '^app.versionCode=' "${VERSION_FILE}" | cut -d'=' -f2)"
- TAG_NAME="Release_${VERSION_NAME}_${VERSION_CODE}"
- TAG_NAME="Release_${VERSION_CODE}_${VERSION_NAME}"
- echo "${TAG_NAME}"
# - git tag -a "Release_$(date +%Y-%m-%d)" -m "Auto-Release ${}"
# - git push release-tag-origin "Release_$(date +%Y-%m-%d)"
- git tag -a "Release_${TAG_NAME}" -m "Auto-Release ${VERSION_NAME} (${VERSION_CODE})"
- git push release-tag-origin "Release_${TAG_NAME}"
android:deploy:
stage: deploy
Loading