Update .gitlab-ci.yml

This commit is contained in:
杨威
2019-05-21 16:24:44 +08:00
parent ad50a7e9b6
commit 45c4f0baf3

View File

@@ -29,5 +29,7 @@ build:
curl --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"
release:
stage: release
tags:
- share
script:
- *post_release_script