From 1e64512222005e149a09d26030f30cc17d72998d Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 11 Feb 2020 06:58:50 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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