Loading .gitlab-ci.yml +7 −6 Original line number Original line Diff line number Diff line Loading @@ -40,13 +40,14 @@ build: publish: publish: stage: publish stage: publish only: only: - tags - tags # Run only on tags except: except: - branches # Do not run this job when a tag is created manually - 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 --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": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_COMMIT_TAG/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}'\ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST 'https://gitlab.e.foundation/api/v4/projects/149/releases' --request POST \ "https://gitlab.e.foundation/api/v4/projects/149/releases" Loading
.gitlab-ci.yml +7 −6 Original line number Original line Diff line number Diff line Loading @@ -40,13 +40,14 @@ build: publish: publish: stage: publish stage: publish only: only: - tags - tags # Run only on tags except: except: - branches # Do not run this job when a tag is created manually - 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 --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": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_COMMIT_TAG/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}'\ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST 'https://gitlab.e.foundation/api/v4/projects/149/releases' --request POST \ "https://gitlab.e.foundation/api/v4/projects/149/releases"