Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bf2c305 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

ci: build release APK only

parent 91175858
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:master"

variables:
  APK_PATH: "app/k9mail/build/outputs/apk/release"
  UNSIGNED_APK: "Mail-unsigned.apk"
  UNSIGNED_APK: "k9mail-release-unsigned.apk"
  COMMUNITY_APK: "Mail-community.apk"
  OFFICIAL_APK: "Mail-official.apk"
  TEST_APK: "Mail-test.apk"
@@ -29,19 +29,10 @@ test:
build:
  stage: build
  script:
  - ./gradlew :app:k9mail:build
  - cd app/k9mail/build/outputs/apk/
  - |
    if [[ ! -d "release" ]]; then
      echo "$APK_PATH does not exist."
      exit 1
    fi
    cd "release"
    unsigned_build=$(ls *.apk | grep "unsigned")
    cp $unsigned_build $UNSIGNED_APK
    - ./gradlew :app:k9mail:assembleRelease
  artifacts:
    paths:
    - app/k9mail/build/outputs/apk/
      - $APK_PATH

init_submodules:
  stage: gitlab_release