Skip to content

Add release workflow (manual dispatch)#12

Merged
TGPSKI merged 2 commits intomainfrom
feat/release-workflow
Apr 10, 2026
Merged

Add release workflow (manual dispatch)#12
TGPSKI merged 2 commits intomainfrom
feat/release-workflow

Conversation

@TGPSKI
Copy link
Copy Markdown
Owner

@TGPSKI TGPSKI commented Apr 10, 2026

Summary

  • Add .github/workflows/release.yml with workflow_dispatch trigger
  • Supports patch, minor, major bump selection via dropdown
  • Dry-run mode to preview version bump without side effects
  • Verifies CI passed on HEAD before tagging
  • Validates CHANGELOG.md has an entry for the target version
  • Builds and runs tests as a final gate
  • Creates annotated git tag and pushes to origin
  • Creates GitHub release with changelog-extracted notes
  • Triggers Go module proxy indexing and verifies pkg.go.dev availability
  • All actions SHA-pinned following repo conventions

Design decisions

  • Uses gh CLI (pre-installed on runners) instead of third-party release actions
  • Requires CHANGELOG entry to exist before release — enforces changelog-driven releases
  • Checks CI status on HEAD to prevent releasing broken code
  • pkg.go.dev verification retries with backoff (5 attempts, 15s apart)
  • Step summary provides clear version bump and release link output

Closes #11

Made with Cursor

…ification

workflow_dispatch with patch/minor/major bump choice and dry-run option.
Verifies CI status, validates CHANGELOG entry, creates annotated tag,
publishes GitHub release, triggers Go module proxy indexing, and confirms
pkg.go.dev availability.

Closes #11

Made-with: Cursor
Adds an authorization step that checks github.actor against CODEOWNERS
and an optional RELEASERS file. Fails fast before any version logic runs
if the actor is not in either list.

Made-with: Cursor
@TGPSKI TGPSKI merged commit 733324b into main Apr 10, 2026
6 checks passed
@TGPSKI TGPSKI deleted the feat/release-workflow branch April 10, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant