Skip to content

CI: auto-create GitHub release on version tags#4

Merged
StuartMeeks merged 1 commit into
mainfrom
feat/auto-github-release
May 27, 2026
Merged

CI: auto-create GitHub release on version tags#4
StuartMeeks merged 1 commit into
mainfrom
feat/auto-github-release

Conversation

@StuartMeeks
Copy link
Copy Markdown
Owner

Adds a release job to the CI workflow so future releases create their GitHub release automatically.

Behaviour

  • Trigger: runs only on v* tags (needs: publish), so it fires after the NuGet push succeeds.
  • Notes: extracts the matching ## [<version>] — … section from CHANGELOG.md for the tag (e.g. v0.2.0 → the 0.2.0 block) and uses it as the release body; falls back to a minimal note if the section is missing.
  • Permissions: scoped to contents: write for the release creation; uses the built-in GITHUB_TOKEN.

Release flow going forward

  1. Land the version's CHANGELOG section (dated) on main.
  2. git tag vX.Y.Z && git push origin vX.Y.Z.
  3. Pipeline: buildpublish (NuGet) → release (GitHub release from the changelog section).

v0.1.0's release was created manually since this automation didn't exist when that tag was pushed.

🤖 Generated with Claude Code

Add a tag-gated `release` job (needs: publish, contents: write) that
extracts the matching section from CHANGELOG.md for the pushed v* tag
and creates a GitHub release with it via the gh CLI. Falls back to a
minimal note if the section isn't found.

Future releases: push a v* tag and the pipeline publishes to NuGet and
creates the GitHub release automatically. (v0.1.0's release was created
manually, before this existed.)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit 78b6fac into main May 27, 2026
3 checks passed
@StuartMeeks StuartMeeks deleted the feat/auto-github-release branch May 27, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant