summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2019-05-21 16:28:33 +0800
committer杨威 <[email protected]>2019-05-21 16:28:33 +0800
commit648953e6dfdfd924d76cd77b211e5cec1b5e15e2 (patch)
tree9caf24614bf2af22eba1ed8dcf285001dcd86dab
parent5b8f4e312c6750084a6aeac56c21248b4e3cdf7b (diff)
Update .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1ced422..02740ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,7 +26,7 @@ build:
- ./build/*.rpm
.post_release_script: &post_release_script |
- curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" --data '{ "name": "$CI_PROJECT_NAME_$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_PROJECT_NAME $CI_COMMIT_TAG release", "assets": { "links": [{ "name": "$CI_PROJECT_NAME_$CI_COMMIT_TAG.zip", "url": "$CI_JOB_URL/artifacts/$CI_COMMIT_TAG/download?job=$CI_JOB_NAME" }] } }' --request POST "$CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG/assets/links/1"
+ curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" --data '{ "name": "$CI_PROJECT_NAME_$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_PROJECT_NAME $CI_COMMIT_TAG release", "assets": { "links": [{ "name": "$CI_PROJECT_NAME_$CI_COMMIT_TAG.zip", "url": "$CI_JOB_URL/artifacts/$CI_COMMIT_TAG/download?job=$CI_JOB_NAME" }] } }' --request POST "$CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/"
release:
stage: release
tags: