Skip to content

Auto-create GitHub Release on publish - #18

Merged
mavickers merged 1 commit into
masterfrom
feature/gh-release
Jul 8, 2026
Merged

mavickers merged 1 commit into
masterfrom
feature/gh-release

Conversation

@mavickers

Copy link
Copy Markdown
Owner

Replaces the tag-only workflow step with one that creates the git tag AND a GitHub Release (auto-generated notes, marked latest), idempotently.

Merging this cuts 3.0.12 (code identical to 3.0.11) and exercises the new release-creation step end-to-end.

- Replace tag-only step with gh release create (creates the tag + a GitHub Release with auto-generated notes, marked latest)
- Idempotent: skips if the release already exists
Copilot AI review requested due to automatic review settings July 8, 2026 02:04
@mavickers
mavickers merged commit 4446774 into master Jul 8, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the publish workflow so that, after pushing the NuGet package, it creates (or reuses) a versioned GitHub Release with autogenerated notes and marks it as the latest—replacing the prior tag-only step.

Changes:

  • Replace the “git tag + git push” step with gh release create to produce both the tag and a GitHub Release.
  • Add a guard that skips release creation when the release already exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +53 to +56
if gh release view "$VERSION" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
echo "Release $VERSION already exists; skipping."
else
git tag "$VERSION"
git push origin "$VERSION"
gh release create "$VERSION" \
@mavickers
mavickers deleted the feature/gh-release branch July 8, 2026 02:09
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.

2 participants