Skip to content

Commit

Permalink
Automate releases with gh #82
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Nov 21, 2021
1 parent 594812a commit cba9f03
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Makesurefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
@depends_on candidate
@depends_on release_makesure
@depends_on README.md
# @depends_on gh_release TODO we can't just do it since we need to commit first

@goal release_makesure @private
cp makesure_candidate makesure
Expand Down Expand Up @@ -328,8 +329,12 @@ in_begin && $1 ~ /^split/ { next }

"./just" --version

@goal gh_release # @private
@goal gh_release #@private
@doc 'publish Github release (draft)'
releaseTag="v$NEXT_VERSION"
echo
echo "Will publish a draft release for $releaseTag ..."
echo
fail () {
echo >&2 "$@"
exit 1
Expand All @@ -339,4 +344,13 @@ in_begin && $1 ~ /^split/ { next }
then
fail "Unable to determine milestoneId by release version"
fi
echo "Milestone ID : $milestoneId"
echo "Milestone ID : $milestoneId"

notesStr="Issues in release: https://github.com/xonixx/makesure/milestone/$milestoneId?closed=1"

gh release create "$releaseTag" \
--title "$releaseTag" \
--notes "$notesStr" \
--draft

echo "Please don't forget to open the release draft, edit it as needed and PUBLISH!"

0 comments on commit cba9f03

Please sign in to comment.