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

Commit 71dca640 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

use protection

parent 6e5329e7
Loading
Loading
Loading
Loading
Loading
+12 −16
Original line number Diff line number Diff line
@@ -24,10 +24,9 @@ build:
  
init_submodules:
  stage: gitlab_release
  when: always
  #rules:
  #  - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
  #    when: on_success
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: on_success
  script:
    - git clone -b 2461-test_release https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo
  artifacts:
@@ -36,10 +35,9 @@ init_submodules:

generate-apks:
  stage: gitlab_release
  when: always
  #rules:
  #  - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
  #    when: on_success
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: on_success
  needs:
    - init_submodules
    - build
@@ -66,10 +64,9 @@ create-json-files:
  needs:
    - init_submodules
    - generate-apks
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: manual
  #rules:
  #  - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
  #    when: manual
  before_script:
    - apt update && apt install jq aapt -y
  script:
@@ -89,10 +86,9 @@ create-release:
    - init_submodules
    - create-json-files
    - generate-apks
  when: manual
  #rules:
  #  - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
  #    when: on_success
  rules:
    - if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
      when: on_success
  before_script:
    - apt update && apt install jq -y
  script: