Files
sublime-music/cicd/publish-gitlab-release.sh
2019-10-29 09:47:47 -06:00

20 lines
378 B
Bash
Executable File

#! /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