diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c49c31cea4ba305a924792c2d287f5deb9a75678..0b32dc9ffcca68b89373185ebf0fef3e725b8059 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,17 +25,27 @@ before_script: stages: - test - build + - release unitTests: stage: test script: - ./gradlew test -build: +assembleDebug: stage: build script: - ./gradlew assembleDebug + +assembleRelease: + stage: release + script: + - echo $KEYSTORE_FILE | base64 -d > my.keystore - ./gradlew assembleRelease + -Pandroid.injected.signing.store.file=$(pwd)/my.keystore + -Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD + -Pandroid.injected.signing.key.alias=$KEY_ALIAS + -Pandroid.injected.signing.key.password=$KEY_PASSWORD artifacts: paths: - - app/build/outputs/ + - app/build/outputs/apk/release