Skip to content

ci: publish GoReleaser drafts after artifact upload - #3

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

intel352 merged 5 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 release assets are uploaded
  • publish the draft after release artifacts are attached, before downstream registry notifications that need public release assets
  • keep release workflows compatible with GitHub immutable releases
  • move PR test CI from unavailable self-hosted runners to ubuntu-latest so required checks can run

Verification

  • actionlint on changed workflows
  • git diff --check

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

This PR adjusts the release pipeline so GoReleaser creates/updates GitHub releases as drafts during artifact upload, and then publishes the release only after the workflow completes the remaining registry-related steps.

Changes:

  • Configure GoReleaser to create GitHub releases as drafts (release.draft: true).
  • Add a final workflow step to publish the draft release via gh release edit ... --draft=false.
  • Quote the git clone URL used for syncing the registry manifest.

Reviewed changes

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

File Description
.goreleaser.yml Sets GitHub releases to be created as drafts during GoReleaser runs.
.github/workflows/release.yml Publishes the draft GitHub release after downstream workflow steps; minor robustness tweak to clone command quoting.

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

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.

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 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/release.yml Outdated

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 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/ci.yml
@intel352
intel352 merged commit a33fb30 into main May 8, 2026
8 checks passed
@intel352
intel352 deleted the fix/goreleaser-draft-publish-flow branch May 8, 2026 20:44
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