summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2019-05-21 17:11:02 +0800
committer杨威 <[email protected]>2019-05-21 17:11:02 +0800
commit382d50aad30c917533463ff69417374657f969ec (patch)
tree21cb78d184d7462edbb8e9ae90ab6780ea9e4357
parent257cd7284da74d4545a0e5d94a676df669d600b2 (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 9ae24f3..e118703 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,7 +26,7 @@ build:
- ./build/*.rpm
.post_release_script: &post_release_script |
- echo -e "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""
+ echo -e "curl --header "PRIVATE-TOKEN:" $CI_JOB_TOKEN --data name=$CI_PROJECT_NAME_$CI_COMMIT_TAG".zip" --data 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: