Hi folks, I’m tagging my annotated git releases as follows:
git tag -a v0.4 -m "$(cat RELNOTES.md)"
The RELNOTES.md actually has a markdown, listing tag header + message body:
krew v0.3 Installation ------------ To install this release, refer to the [installation instructions](https://www.example.com) Acknowledgements ---------------- Thanks to contributors for helping out in this release: - The Dog - Good cat
So when I push the tag to my repo, GitHub doesn’t automatically create a release (expected).
What’s weird is that when I go to Releases --> Tags of my repository and click “Create Release” , I’m presented with a form with empty release header + message (unexpected):
Next, I click Publish Release , without filling out these fields, and my release is created. However, the release body is not shown as Markdown (unexpected), but plaintext:
Now if I click “Edit Release” and copy/paste the same markdown tag message into the Release message, it renders Markdown as expected.
So my question is, how are people supposed to convert annotated git tag messages into GitHub Release message body without doing manual work?