Loading .gitlab-ci.yml +3 −6 Original line number Original line Diff line number Diff line Loading @@ -45,10 +45,7 @@ publish: - branches # Do not run this job on a branch - branches # Do not run this job on a branch script: script: - | - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ curl --header 'Content-Type: application/json' --header "JOB-TOKEN: $CI_JOB_ID" \ --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\"}]}}" \ --data '{ "name": "$CI_COMMIT_TAG", "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": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ --header "Content-Type: application/json" \ --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" Loading
.gitlab-ci.yml +3 −6 Original line number Original line Diff line number Diff line Loading @@ -45,10 +45,7 @@ publish: - branches # Do not run this job on a branch - branches # Do not run this job on a branch script: script: - | - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ curl --header 'Content-Type: application/json' --header "JOB-TOKEN: $CI_JOB_ID" \ --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\"}]}}" \ --data '{ "name": "$CI_COMMIT_TAG", "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": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ --header "Content-Type: application/json" \ --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases"