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

Commit 48c819c5 authored by Mohit Mali's avatar Mohit Mali
Browse files

Sign apk with test keys and publish to gitlab release page

parent 8b9047a6
Loading
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest

stages:
- build
- publish

variables:
  GIT_SUBMODULE_STRATEGY: recursive
@@ -36,3 +37,16 @@ build:
  artifacts:
    paths:
    - play-services-core/build/outputs/apk/

publish:
  stage: publish
  only:
    - tags                                       # Run only on tags
  except:
    - branches                                   # Do not run this job on a branch
  script:
    - |
      curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \
           --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \
           --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"${CI_COMMIT_TAG}\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"${CI_COMMIT_TITLE}\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/${CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/withMapboxWithNearby/release/play-services-core-withMapbox-withNearby-release-unsigned.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \
           --request POST https://gitlab.e.foundation/api/v4/projects/149/releases
+11 −0
Original line number Diff line number Diff line
@@ -119,10 +119,21 @@ android {
        disable 'MissingTranslation', 'InvalidPackage', 'BatteryLife', 'ImpliedQuantity', 'MissingQuantity', 'InvalidWakeLockTag'
    }

    signingConfigs {
        release {
            storeFile file("platform.keystore")
            storePassword 'password'
            keyAlias 'platform'
            keyPassword 'password'
        }
    }


    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }

+2.83 KiB

File added.

No diff preview for this file type.