Loading .gitlab-ci.yml +5 −12 Original line number Diff line number Diff line Loading @@ -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" Loading
.gitlab-ci.yml +5 −12 Original line number Diff line number Diff line Loading @@ -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"