Update .gitlab-ci.yml file
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user