diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71fe4b0..5cc4d5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,7 @@ build_web: - build/web/ -build_android_fdroid: +build_android_apk: stage: coverage script: - cd android && echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks && cd .. @@ -50,6 +50,24 @@ build_android_fdroid: only: - master + +build_android_appbundle: + stage: coverage + script: + - cd android && echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks && cd .. + - cd android && echo "storePassword=${FDROID_KEY_PASS}" >> key.properties && cd .. + - cd android && echo "keyPassword=${FDROID_KEY_PASS}" >> key.properties && cd .. + - cd android && echo "keyAlias=key" >> key.properties && cd .. + - cd android && echo "storeFile=../key.jks" >> key.properties && cd .. + - cd android/app && echo $GOOGLE_SERVICES >> google-services.json && cd ../.. + - flutter build appbundle --target-platform android-arm,android-arm64,android-x64 + artifacts: + when: on_success + paths: + - build/app/outputs/bundle/release/app-release.aab + only: + - master + pages: stage: publish image: ruby:2.3