Always push to GitHub Packages; gate NuGet.org on release only#68
Merged
Conversation
Co-authored-by: iwillspeak <1004401+iwillspeak@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update publish.yml to always push to GitHub packages feed
Always push to GitHub Packages; gate NuGet.org on release only
Mar 4, 2026
There was a problem hiding this comment.
Pull request overview
This PR restructures the deploy job in the publish workflow so that the GitHub Packages feed is always updated (on every push to main, release, or manual dispatch), while publishing to NuGet.org remains gated behind a GitHub release event.
Changes:
- Removed the
if: github.event_name == 'release'condition from thedeployjob level so the job always runs. - Added the
if: github.event_name == 'release'condition specifically to the "Publish NuGet package" step (NuGet.org), keeping the "Publish GitHub package" step unconditional.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
snus-kin
approved these changes
Mar 4, 2026
ShaunWatsonCrisp
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Manual
workflow_dispatchruns produced no packages because the entiredeployjob was gated ongithub.event_name == 'release'. The intent is to always publish pre-release packages to GitHub Packages, while keeping NuGet.org pushes release-only.Changes
publish.yml: Removedif: github.event_name == 'release'from thedeployjob level; moved it down to the NuGet.org publish step only.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.