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

Commit 5a780b95 authored by Mohit Mali's avatar Mohit Mali
Browse files

Add asset link in release api

parent daaff137
Loading
Loading
Loading
Loading
Loading
+4 −6
Original line number Original line Diff line number Diff line
@@ -46,9 +46,7 @@ publish:
  script:
  script:
    - |
    - |
      curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \
      curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \
        --data "{\"ref\": \"$CI_COMMIT_TAG\",\"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/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \
        --data '{"ref": "$CI_COMMIT_TAG","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/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}"\
        --header "Content-Type: application/json" \
        --header 'Content-Type: application/json' \
        --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \
        --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \
        --request POST \
        --request POST https://gitlab.e.foundation/api/v4/projects/149/releases
        "https://gitlab.e.foundation/api/v4/projects/149/releases"
 No newline at end of file