summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2019-05-21 16:42:03 +0800
committer杨威 <[email protected]>2019-05-21 16:42:03 +0800
commitd7ec676aa33263f647aa8ba9a020569a137cd59b (patch)
treee27b19617072f9351c8a6b7ebc07cad33b609cb8
parent2e7fc99f74f272e8e965d7b2dd2724bf80a4fbeb (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 8272e48..29d722c 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"
+ 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"
release:
stage: release
tags: