Skip to content

Commit

Permalink
Improve release script
Browse files Browse the repository at this point in the history
  • Loading branch information
kesselborn committed Jan 17, 2019
1 parent 322fafd commit 4f0908e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ LOCAL_ASSET=web-ext-artifacts/conex-${next_version}-an+fx.xpi
repo=$(git remote get-url origin|cut -d: -f2|sed 's/\.git$//g')

release_notes_file=$(mktemp /tmp/release_notes.XXXXXX)
echo "release notes for github:" > ${release_notes_file}
echo -e "release notes for github:\n$(git log --format=%B -n 1 HEAD^1)\n\n$(git log --format=%B -n 1 HEAD)" > ${release_notes_file}
vi ${release_notes_file} || true
(set -x; cat release_notes_file|pbcopy)
release_notes=$(cat ${release_notes_file} | while read l; do echo -n "$l\\n"; done)
release_body="{\"tag_name\":\"${VERSION}\",\"name\":\"${VERSION}\",\"body\":\"${release_notes}\",\"draft\":false,\"prerelease\":false}"
rm -f ${release_notes_file}
Expand Down

0 comments on commit 4f0908e

Please sign in to comment.