GoReleaser

Add the install commands to every release that GoReleaser publishes.

GoReleaser writes the changelog into the release notes and appends release.footer after it. Add the install section as the footer in .goreleaser.yaml, with your repository in place of YOUR/REPO:

YAML
release:
  footer: |
    ## 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 footer is a template. To install exactly this release, add ?version={{ .Tag }} to each URL.

To put the section above the changelog, use release.header instead of release.footer. Both work in GoReleaser’s free edition.

Check the result

Validate the configuration before you tag:

Shell
goreleaser check

GoReleaser adds the footer to the release body when it publishes, so the notes of your next release show the section.

The file names GoReleaser picks by default already match what the install script looks for. Make your releases installable lists the names it recognizes.