Add GitLab Release script
This commit is contained in:
19
cicd/publish-gitlab-release.sh
Executable file
19
cicd/publish-gitlab-release.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
data="
|
||||
{
|
||||
\"name\": \"${CI_COMMIT_TAG}\",
|
||||
\"tag_name\": \"${CI_COMMIT_TAG}\",
|
||||
\"description\": \"Test release from the GitLab CI/CD\",
|
||||
\"milestones\": []
|
||||
}
|
||||
"
|
||||
|
||||
echo $data
|
||||
|
||||
cat CHANGELOG
|
||||
|
||||
curl \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" \
|
||||
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases
|
Reference in New Issue
Block a user