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

Fixed Android CI/CD.

This commit is contained in:
Koen 2023-06-26 17:20:55 +02:00
parent 5dbbdd7305
commit 56e7bb9693

View file

@ -5,7 +5,7 @@ buildAndDeployApk:
script:
- if [ -z "$ANDROID_VERSION_NAME" ] || [ -z "$ANDROID_VERSION_CODE" ]; then echo "Version name or code not specified. Skipping build."; exit 0; fi
- ./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/defaultFlavor/release/app-defaultFlavor-release.apk /var/www/html/fcast-release.apk
- echo $ANDROID_VERSION_CODE > /var/www/html/fcast-version.txt
when: manual