Skip to content

Commit

Permalink
#137 fix release JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Feb 5, 2017
1 parent db6ff0d commit e852425
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-utils/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ echo "Start Github release for ${VERSION}..."
CHANGELOG="${CHANGELOG:-}"
API_JSON=$(printf '{"body": "%s"}' "${CHANGELOG}")

# add Changlog (updated via 'changelog-custom') to staged files
git add CHANGELOG.md

###
# Github Release
###
Expand All @@ -42,7 +45,7 @@ git tag "v$VERSION"
git push --follow-tags

echo "make Github release"
API_JSON=$(printf '{"tag_name": "v%s", "target_commitish": "release", "name": "v%s", "body": "%s", "draft": false, "prerelease": false}' $VERSION $VERSION $CHANGELOG)
API_JSON=$(printf '{"tag_name": "v%s", "target_commitish": "release", "name": "v%s", "body": "%s", "draft": false, "prerelease": false}' "${VERSION}" "${VERSION}" "${CHANGELOG}")
curl \
--data "$API_JSON" \
-H "Authorization: token ${GITHUB_TOKEN}" \
Expand Down

0 comments on commit e852425

Please sign in to comment.