Add install commands to your release notes

Put the install commands into every GitHub release your release tool publishes.

Many users find a project through its release page, not its README. Your release tool can add the install commands to the notes of every release, so they sit right next to the files they install.

The section to add

Each guide adds this section, with your repository in place of YOUR/REPO:

Markdown
## Install

**macOS & Linux**

```sh
curl -fsSL https://installer.dev/YOUR/REPO/install.sh | sh
```

**Windows** (PowerShell)

```powershell
irm https://installer.dev/YOUR/REPO/install.ps1 | iex
```

The commands install the latest release, also from the notes of an older one. To install exactly the release the notes belong to, add ?version=TAG to each URL. Such an install is pinned, and Update skips it.

Guides

Tool Where the section goes
GoReleaser release.footer in .goreleaser.yaml
Release Drafter footer in .github/release-drafter.yml
semantic-release releaseBodyTemplate of @semantic-release/github
action-gh-release body of the softprops/action-gh-release step
cargo-dist a job in post-announce-jobs that edits the published notes

Other tools

Any tool that takes a release body works. Paste the section where the tool reads the body text. With the GitHub CLI, save the section as install.md. The CLI puts it above the generated notes:

Shell
gh release create v1.2.3 --generate-notes --notes-file install.md