Release Drafter
Add the install commands to every release that Release Drafter drafts.
Release Drafter appends footer after template in every draft it writes. $OWNER and $REPOSITORY fill in your repository, so the section works as it is. Add it to .github/release-drafter.yml:
template: |
$CHANGES
footer: |
## Install
**macOS & Linux**
```sh
curl -fsSL https://installer.dev/$OWNER/$REPOSITORY/install.sh | sh
```
**Windows** (PowerShell)
```powershell
irm https://installer.dev/$OWNER/$REPOSITORY/install.ps1 | iex
```Keep your own template and categories. Only the footer key is new. To install exactly this release, add ?version=v$RESOLVED_VERSION to each URL, with the prefix your tags use in place of v.
To put the section above the changes, use header instead of footer.
Check the result
Release Drafter updates the draft release on the next push to your default branch. Open the draft on the Releases page of your repository and check the section before you publish.