From e5c3b28a35a49cf8f8ebe9b7850ccdb49f20c92d Mon Sep 17 00:00:00 2001 From: Koen Date: Tue, 20 Jun 2023 13:19:27 +0200 Subject: [PATCH] Fixed CI/CD. --- receivers/android/.gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/receivers/android/.gitlab-ci.yml b/receivers/android/.gitlab-ci.yml index 7511d8e..d57eded 100644 --- a/receivers/android/.gitlab-ci.yml +++ b/receivers/android/.gitlab-ci.yml @@ -11,9 +11,11 @@ variables: buildAndDeployApk: stage: buildAndDeployApk + before_script: + - cd receivers/android script: - if [ -z "$ANDROID_VERSION_NAME" ] || [ -z "$ANDROID_VERSION_CODE" ]; then echo "Version name or code not specified. Skipping build."; exit 0; fi - - ./receivers/android/gradlew --stacktrace assembleRelease -PversionName=$ANDROID_VERSION_NAME -PversionCode=$ANDROID_VERSION_CODE + - ./gradlew --stacktrace assembleRelease -PversionName=$ANDROID_VERSION_NAME -PversionCode=$ANDROID_VERSION_CODE - cp ./app/build/outputs/apk/release/app-release.apk /var/www/html/fcast-release.apk - cp ./app/build/outputs/apk/release/app-release.apk /var/www/html/fastcast-release.apk when: manual