From a82f72ac380a2246937b60316d2428cc2a536688 Mon Sep 17 00:00:00 2001 From: Chandrashekhar Reddy Date: Wed, 16 Oct 2024 09:15:14 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20b597b..ef3b28f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,12 +46,20 @@ assembleDebug: paths: - app/build/outputs/ +# Job for building signed release APK for tags containing "release" on any branch # Job for building signed release APK for tags containing "release" on any branch assembleRelease: stage: build script: - | + echo "Current branch: $CI_COMMIT_BRANCH" + echo "Current tag: $CI_COMMIT_TAG" + echo "Is tag? $CI_COMMIT_TAG" + echo "Is branch? $CI_COMMIT_BRANCH" + if [[ "$CI_COMMIT_TAG" =~ release ]]; then + echo "Tag contains 'release'. Proceeding with release APK build." + echo "Decoding keystore file from Base64" # Debug: Print the first few characters of BASE64_KEYSTORE