Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
2fbb5cea
Commit
2fbb5cea
authored
Dec 02, 2019
by
Matthias Betz
Browse files
repairing release CI
parent
801877da
Pipeline
#308
passed with stage
in 39 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2fbb5cea
...
...
@@ -19,7 +19,7 @@ release:
-
echo ${UPLOAD_RESULT}
-
FILE_URL=$(echo ${UPLOAD_RESULT} | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["url"]')
-
echo ${FILE_URL}
-
'
DATA="{
"
"name
"
":
"
"Release
${CI_COMMIT_TAG}
"
",
"
"tag_name
"
":
"
"${CI_COMMIT_TAG}
"
",
"
"description
"
":
"
"RegionChooser
Release
"
",
"
"assets
"
":
{
"
"links
"
":
[{
"
"name
"
":
"
"${FILE}
"
",
"
"url
"
":
"
"${CI_PROJECT_URL}${FILE_URL}
"
"}]
}
}"'
-
'
DATA="{
\
"name
\
":
\
"Release
${CI_COMMIT_TAG}
\
",
\
"tag_name
\
":
\
"${CI_COMMIT_TAG}
\
",
\
"description
\
":
\
"RegionChooser
Release
\
",
\
"assets
\
":
{
\
"links
\
":
[{
\
"name
\
":
\
"${FILE}
\
",
\
"url
\
":
\
"${CI_PROJECT_URL}${FILE_URL}
\
"}]
}
}"'
-
echo ${DATA}
-
'
curl
--header
"Content-Type:
application/json"
--header
"Private-Token:
${TOKEN}"
--data
"${DATA}"
--request
POST
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases'
only
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment