summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2019-05-21 19:11:06 +0800
committer杨威 <[email protected]>2019-05-21 19:11:06 +0800
commit53c5d8de6936875d96b94b6d3111a1c5a8bca657 (patch)
tree68712087eacf9c3efce77824d4c3d797214fb87c
parent0ffa021b7af03f9e312986ac5020a7136c1e5a06 (diff)
Update .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dd71e85..e75fc9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,8 +5,8 @@ stages:
#- package
- release
-variables:
- artifacts_job_name: "build"
+#variables:
+# artifacts_job_name: "build"
build:
stage: build
@@ -29,7 +29,7 @@ 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_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/download?job=$artifacts_job_name\" }] } }' --request POST $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/"""| /bin/bash
+ 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_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/download?job=build\" }] } }' --request POST $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/"""| /bin/bash
release:
stage: release
tags: