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

Commit 953a92f2 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

feat: make create-release ci task to be run

parent 0440ead9
Loading
Loading
Loading
Loading
Loading
+19 −3
Original line number Diff line number Diff line
@@ -68,14 +68,30 @@ test:
# | ---------------------------------------- |
# | eDrive as a dependency on AccountManager |
# |==========================================|

init_submodules:
  stage: release
  # rules:
  #   - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
  #     when: on_success
  script:
    - |
      git submodule add --force \
      https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo
  artifacts:
    paths:
      - systemAppsUpdateInfo/


generate-apks:
  stage: release
  rules:
    - if: '$CI_COMMIT_TAG' # && $CI_COMMIT_REF_PROTECTED == "true"' # TODO <= uncomment once validated
      when: on_success
  #   - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"' 
  #     when: on_success
  needs:
    - init_submodules
    - build
  dependencies:
    - init_submodules
    - build
  before_script:
    - apt update && apt install apksigner -y