fix: consolidate release workflow and publish draft releases#7
Conversation
Merged tag.yaml into release.yaml to create a single unified workflow that handles tag creation, GoReleaser execution, and draft publication. This fixes the Homebrew 404 issue where draft releases were not publicly accessible. Changes: - Consolidated tag creation and release into single workflow - Added git fetch to pull newly created tags - Pass GORELEASER_CURRENT_TAG explicitly to GoReleaser - Publish draft releases after asset upload completes - Deleted separate tag.yaml workflow Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe release and tagging workflows are consolidated into a single release workflow. Version bumping and tag creation functionality, previously in a separate workflow, is now integrated as a conditional first step. Subsequent build and publish steps execute only if a new tag is successfully created. Changes
Sequence DiagramsequenceDiagram
participant GHA as GitHub Actions
participant TagAction as Tag Action<br/>(mathieudutour)
participant GoReleaser as GoReleaser
participant GHCli as GitHub CLI<br/>(gh release edit)
GHA->>TagAction: Trigger tag creation<br/>(on: push to main)
TagAction->>TagAction: Bump version & create tag
TagAction-->>GHA: Output new_tag
alt new_tag exists
GHA->>GoReleaser: Set up Go & fetch tag
GHA->>GoReleaser: Run GoReleaser<br/>(with GORELEASER_CURRENT_TAG)
GoReleaser-->>GHA: Release artifacts
GHA->>GHCli: Publish release
else no new tag
GHA->>GHA: Skip build & publish
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes the Homebrew 404 issue by ensuring releases are published before assets are accessible. Merged tag.yaml into release.yaml for unified tag creation and release workflow with draft publication.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.