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

Commit 918ad350 authored by Mohit Mali's avatar Mohit Mali
Browse files

Update .gitlab-ci.yml

parent 18278171
Loading
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -36,18 +36,11 @@ build:
  artifacts:
    paths:
      - play-services-core/build/outputs/apk/

publish:
  stage: publish
  only:
    - tags
  except:
    - branches                                   # Do not run this job when a tag is created manually
  script:
      - |
      curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \
      --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \
      --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/projects/${CI_PROJECT_ID}/jobs/artifacts/$CI_COMMIT_TAG/download?job=build",
      \"filepath\": \"play-services-core/build/outputs/apk/", \"link_type\":\"other\"}]}}" \
      --header "Content-Type: application/json" \
      --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \
      --header "JOB-TOKEN: $CI_JOB_ID" \
      --request POST \
      "https://gitlab.e.foundation/api/v4/projects/149/releases"
      "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases"