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

Commit 01d1cce9 authored by Mohit Mali's avatar Mohit Mali
Browse files

# Update gitlab ci

parent 0b509af3
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -47,14 +47,14 @@ publish:
    - branches                               # Do not run this job on a branch
  script:
    - echo $CI_COMMIT_SHA
    - echo $COMMIT_TAG
    - echo $CI_COMMIT_TAG
    - 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" \
      --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG",
      "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE",
      "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/v28.10.2020/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \
      --header "Content-Type: application/json" \
      --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG",
      "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE",
      "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4","filepath": "/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":"other"}]}}' \
      --header 'Content-Type: application/json' \
      --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \
      --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases"
      --request POST https://gitlab.e.foundation/api/v4/projects/149/releases