From 2637f84cac7cbc7ef1ab4cc1d69bf182cc287448 Mon Sep 17 00:00:00 2001 From: Chandrashekhar Reddy Date: Tue, 15 Oct 2024 12:05:39 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6eeb93..0d3651c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,10 +52,8 @@ assembleRelease: script: - | if [[ "$CI_COMMIT_TAG" =~ release ]]; then - echo "Downloading keystore file from GitLab secure files" - curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ - --output $CI_PROJECT_DIR/app/keystore.jks \ - "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/uploads/${KEYSTORE_FILE_ID}" + echo "Decoding keystore file from Base64" + echo $BASE64_KEYSTORE | base64 --decode > $CI_PROJECT_DIR/app/keystore.jks echo "Building signed release APK" ./gradlew assembleRelease -Pandroid.injected.signing.store.file=$CI_PROJECT_DIR/app/keystore.jks \ -Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \