diff options
| author | 杨威 <[email protected]> | 2019-05-21 18:27:25 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2019-05-21 18:27:25 +0800 |
| commit | 03406374d65cbc59050185d8d2d7422f6e099f32 (patch) | |
| tree | 6e2a93d1f35e500959c6e9f00096e509cf11fb7c | |
| parent | be84f59cd7a3854ecbb2984fd801a2eacb985ec0 (diff) | |
Update .gitlab-ci.yml
| -rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a60204..1d00af7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,10 +26,12 @@ build: - ./build/*.rpm .post_release_script: &post_release_script | - echo -e "curl --header 'Content-Type: application/json' --header \"PRIVATE-TOKEN: ToRuds-b9AW2mgLH9-cX \" --data '{ \"name\": \"$CI_COMMIT_TAG.zip\", \"tag_name\": \"$CI_COMMIT_TAG\", \"description\": \"$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/""" + echo -e "curl --header 'Content-Type: application/json' --header \"PRIVATE-TOKEN: ToRuds-b9AW2mgLH9-cX \" --data '{ \"name\": \"$CI_COMMIT_TAG.zip\", \"tag_name\": \"$CI_COMMIT_TAG\", \"description\": \"$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/"""| /bin/bash release: stage: release tags: - share + only: + - tags script: - *post_release_script
\ No newline at end of file |
