When you tag a version, you usually want the same things to happen every time: build the artifacts, attach them, and publish notes. This generator builds a GitHub Actions workflow that fires on a version tag, runs your build, auto-generates release notes from commit history, and uploads your assets to a GitHub Release.
How it works
The workflow listens on a push event filtered to tags matching your pattern. On a match it:
- Checks out the full history so the changelog action can diff against the previous tag.
- Runs your build command to produce the release artifacts.
- Calls
softprops/action-gh-release, which creates the release for the pushed tag, setsgenerate_release_notes: true, and uploads every file matching your asset globs.
It needs only the built-in GITHUB_TOKEN with contents: write permission — no personal access token.
Tips and notes
- Use a tag pattern like
v*so only version tags publish releases, not every tag. - Generated notes summarize merged pull requests since the last tag; write clear PR titles for clean changelogs.
- Provide multiple asset globs (one per line) to attach binaries for several platforms in a single release.
- For signed or checksummed assets, add a step before the release that produces the
.sha256files and include them in the globs.