Skip to content

Auto-publish bugn.exe to GitHub Releases on master push and v* tags#7

Merged
somanysteves merged 1 commit intomasterfrom
ci/auto-release
Apr 26, 2026
Merged

Auto-publish bugn.exe to GitHub Releases on master push and v* tags#7
somanysteves merged 1 commit intomasterfrom
ci/auto-release

Conversation

@somanysteves
Copy link
Copy Markdown
Owner

Summary

  • Adds a release job to ci.yml that downloads the existing bugn-exe artifact and publishes it.
  • Master push → updates a rolling latest pre-release in place (prerelease: true, make_latest: false so the "Latest" badge stays with real versioned releases).
  • v* tag push → cuts a normal release with auto-generated release notes.
  • Repository guard (github.repository == 'somanysteves/bug.n') prevents downstream forks from triggering release publishes.

End-user effect: people can grab bugn.exe from the Releases page without forking and building.

Test plan

  • CI green on this PR (build-and-test runs; release job is skipped on PR events by design).
  • After merge, master push creates/updates the latest release with bugn.exe attached.
  • Push a throwaway v0.0.0-test tag to confirm versioned-release path; delete the tag/release after.
  • Verify the "Latest" badge on the Releases page stays unset (since rolling release uses make_latest: false).

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings April 26, 2026 19:43
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

Adds automated publishing of the built bugn.exe artifact to GitHub Releases, enabling end users to download binaries directly from the Releases page after master pushes or version tag pushes.

Changes:

  • Trigger CI on v* tag pushes in addition to branch pushes.
  • Add a release job that downloads the bugn-exe artifact and publishes it to GitHub Releases.
  • Publish a rolling latest prerelease on master pushes and a normal, notes-generated release on v* tag pushes (guarded to only run in somanysteves/bug.n).

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

Comment thread .github/workflows/ci.yml
Comment on lines +55 to +56
uses: softprops/action-gh-release@v2
with:
Copy link

Copilot AI Apr 26, 2026

Choose a reason for hiding this comment

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

For supply-chain security, consider pinning this third-party action to a full commit SHA instead of the mutable @v2 tag (e.g., softprops/action-gh-release@<sha>). Using tags can silently pick up compromised or breaking changes in the future.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/ci.yml
Comment on lines +70 to +71
uses: softprops/action-gh-release@v2
with:
Copy link

Copilot AI Apr 26, 2026

Choose a reason for hiding this comment

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

Same as above: pin softprops/action-gh-release to a specific commit SHA rather than @v2 to reduce supply-chain risk and ensure builds are reproducible.

Copilot uses AI. Check for mistakes.
Adds a release job that downloads the build artifact and publishes it:
master pushes update a rolling "latest" pre-release in place (so the
"Latest" badge stays on real versioned releases), and v* tag pushes
cut a normal release with auto-generated notes. Repository guard
prevents downstream forks from triggering releases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@somanysteves somanysteves merged commit bac3a02 into master Apr 26, 2026
4 checks passed
@somanysteves somanysteves deleted the ci/auto-release branch April 26, 2026 19:57
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