Skip to content

ci: publish GoReleaser drafts after artifact upload#3

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

ci: publish GoReleaser drafts after artifact upload#3
intel352 merged 4 commits into
mainfrom
fix/goreleaser-draft-publish-flow

Conversation

@intel352
Copy link
Copy Markdown
Contributor

@intel352 intel352 commented May 8, 2026

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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the release pipeline so GoReleaser creates GitHub releases as drafts, and the workflow publishes the release only at the end of the release process—supporting workflows that need to finish artifact/registry steps before making the release public.

Changes:

  • Configure GoReleaser to create GitHub releases as drafts.
  • Add a workflow step to publish (undraft) the GitHub release after the registry notification step.

Reviewed changes

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

File Description
.goreleaser.yaml Sets release.draft: true so GitHub releases are created as drafts.
.github/workflows/release.yml Adds a final step to publish the draft GitHub release via gh release edit.

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

Comment thread .github/workflows/release.yml Outdated
Copy link
Copy Markdown

Copilot AI left a comment

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 2 comments.

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Copy link
Copy Markdown

Copilot AI left a comment

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 a9c789a into main May 8, 2026
9 checks passed
@intel352 intel352 deleted the fix/goreleaser-draft-publish-flow branch May 8, 2026 14:38
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