1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Fixed CI/CD.

This commit is contained in:
Koen 2023-06-20 13:19:27 +02:00
parent c4491d195b
commit e5c3b28a35

View file

@ -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