Skip to content

Commit

Permalink
fix YAML to create GitHub Release
Browse files Browse the repository at this point in the history
  • Loading branch information
lene committed Aug 24, 2023
1 parent cbbffbc commit 2dc9d62
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,19 @@ CreateGithubRelease:
API_URL: "https://api.github.com/repos/lene/DuplicateImages/releases"
DESCRIPTION: "Full Changelog: https://github.com/lene/DuplicateImages/blob/${CI_COMMIT_TAG}/CHANGELOG.md"
script:
- POST_DATA='{
- POST_DATA='{
"tag_name":"'${CI_COMMIT_TAG}'",
"target_commitish":"master",
"name":"'${CI_COMMIT_TAG}'",
"body":"'${DESCRIPTION}'",
"body":"'${FULL_DESCRIPTION}${DESCRIPTION}'",
"draft":false,
"prerelease":false,
"generate_release_notes":false
}'
- 'curl -L -X POST
- echo $API_URL
- echo $POST_DATA
- 'curl -L -X POST
-H "Accept: application/vnd.github+json"
-H "X-GitHub-Api-Version: 2022-11-28"
-H "Authorization: Bearer ${GITHUB_API_TOKEN}"
${API_URL} -d ${POST_DATA}'
${API_URL} -d "${POST_DATA}"'

0 comments on commit 2dc9d62

Please sign in to comment.