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

Commit bcf0cac9 authored by Mohit Mali's avatar Mohit Mali
Browse files

# Update gitlab ci

parent 46a65e5e
Loading
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -49,12 +49,10 @@ publish:
    - echo $CI_COMMIT_SHA
    - echo $CI_COMMIT_SHA
    - echo $CI_COMMIT_TAG
    - echo $CI_COMMIT_TAG
    - echo $CI_COMMIT_MESSAGE
    - echo $CI_COMMIT_MESSAGE
    - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build
    - |
    - |
      curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \
      curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \
      --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG",
      --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG",
      "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE",
      "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE"}' \
      "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \
      --header 'Content-Type: application/json' \
      --header 'Content-Type: application/json' \
      --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \
      --header "JOB-TOKEN: $CI_JOB_TOKEN" \
      --request POST https://gitlab.e.foundation/api/v4/projects/149/releases
      --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases