Skip to content

ci: publish GoReleaser drafts after artifact upload - #20

Merged
intel352 merged 3 commits into
mainfrom
fix/goreleaser-draft-publish-flow
May 8, 2026
Merged

intel352 merged 3 commits into
mainfrom
fix/goreleaser-draft-publish-flow

Conversation

@intel352

@intel352 intel352 commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • configure GoReleaser to keep GitHub releases as drafts while artifacts are uploaded
  • publish the draft release only after the release workflow completes artifact/registry steps
  • keep release workflows compatible with GitHub immutable releases

Verification

  • actionlint on changed GoReleaser release workflow
  • git diff --check

Copilot AI review requested due to automatic review settings May 8, 2026 10:21

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

Configures the release pipeline to avoid publishing an immutable GitHub Release until after artifacts and registry-related steps have completed, by keeping GoReleaser-created releases as drafts and publishing them at the end of the workflow.

Changes:

  • Configure GoReleaser to create GitHub Releases as drafts (release.draft: true).
  • Add a final workflow step to publish the draft GitHub Release via gh release edit.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.goreleaser.yml Enables draft GitHub Releases so assets can be uploaded before publishing.
.github/workflows/release.yml Publishes the draft release at the end of the workflow using gh.

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

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
@intel352
intel352 requested a review from Copilot May 8, 2026 13:51

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@intel352
intel352 merged commit f8f3871 into main May 8, 2026
13 checks passed
@intel352
intel352 deleted the fix/goreleaser-draft-publish-flow branch May 8, 2026 14:27
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