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

Commit 5582b86a authored by Mohit Mali's avatar Mohit Mali
Browse files

Add asset link in release api

parent 82c5902e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ publish:
  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\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"jobs/artifacts/$CI_COMMIT_TAG/download?job=build", \"link_type\":\"other\"}]}}" \
            --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"/play-services-core/build/outputs/apk", \"link_type\":\"other\"}]}}" \
            --header "Content-Type: application/json" \
            --header "JOB-TOKEN: $CI_JOB_ID" \
            --request POST \