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

Commit e9322726 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Merge branch '2760-t-update-release-process' into 'v1-t'

feature: update gitlab-ci.yml to release for test build

See merge request e/os/BlissLauncher3!71
parents 93a54639 0df08a0b
Loading
Loading
Loading
Loading
Loading
+28 −11
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@ variables:
  APK_PATH: "build/outputs/apk/blissWithQuickstep/release"
  UNSIGNED_APK: "BlissLauncher-apiT-release.apk"
  COMMUNITY_APK: "BlissLauncher-apiT-community.apk"
  OFFICIAL_APK: "BlissLauncher-apiT-official.apk.apk"
  OFFICIAL_APK: "BlissLauncher-apiT-official.apk"
  TEST_APK: "BlissLauncher-apiT-test.apk"

stages:
  - build
@@ -60,17 +61,16 @@ generate-apks:
  dependencies:
    - init_submodules
    - blissWithQuickstepRelease
  before_script:
    - apt update && apt install apksigner -y
  script:
    - |
      ./systemAppsUpdateInfo/scripts/generate-apks.sh \
      "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK"
      "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK"
  artifacts:
    paths:
      - $APK_PATH/$UNSIGNED_APK
      - $APK_PATH/$COMMUNITY_APK
      - $APK_PATH/$OFFICIAL_APK
      - $APK_PATH/$TEST_APK

create-json-files:
  stage: gitlab_release
@@ -82,17 +82,34 @@ create-json-files:
    - generate-apks
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: manual
  before_script:
    - apt update && apt install jq aapt -y
      when: on_success
  script:
    - |
      ./systemAppsUpdateInfo/scripts/create-json-files.sh \
      "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK"
      "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK"
  artifacts:
    paths:
      - community.json
      - official.json
      - test.json

create-test-release:
  stage: gitlab_release
  dependencies:
    - init_submodules
  needs:
    - init_submodules
    - create-json-files
    - generate-apks
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: manual
  script:
    - |
      ./systemAppsUpdateInfo/scripts/create-test-release.sh \
      "$APK_PATH" "$TEST_APK"
  allow_failure: true


create-release:
  stage: gitlab_release
@@ -104,10 +121,10 @@ create-release:
    - generate-apks
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: on_success
  before_script:
    - apt update && apt install jq -y
      when: manual
  script:
    - |
      ./systemAppsUpdateInfo/scripts/create-release.sh \
      "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK"
  allow_failure: true
  
 No newline at end of file