Repository navigation
Use NuGet trusted publishing for release packages - #2444
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2444 +/- ##
==========================================
- Coverage 86.93% 86.93% -0.01%
==========================================
Files 315 316 +1
Lines 70509 70574 +65
Branches 20606 20613 +7
==========================================
+ Hits 61297 61353 +56
- Misses 4941 4948 +7
- Partials 4271 4273 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Member
Author
|
@Rafael-SOWNet Use this to publish instead of the NuGet API key. This login has access to publishing new versions, new packages, staging and delisting/relisting old packages. Modify as you wish except that yml file renames need me to update the authorization on NuGet |
Rafael-SOWNet
added a commit
that referenced
this pull request
Nov 14, 2026
A release event runs the workflow as it stood at the tagged commit, so a release whose publish failed cannot be retried under a newer workflow by re-running it. A workflow_dispatch with the tag checks the tag out and packs it as the release would, with the login from the default branch's workflow, which is the one the trusted-publishing policy names. The tag reaches the shell through the environment rather than interpolated into the script. 2.7.0's run failed on the expired API key before #2444; this publishes it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
The release workflow currently publishes four packages with a stored NuGet API key. Pack all four, then obtain one short-lived credential through NuGet trusted publishing and reuse it for the four pushes in their existing order.
The NuGet policy must match
ASC-Community/AngouriMath/Nuget.yml, with no environment and scopes permitting all four package IDs.Validation: actionlint and a structural comparison of the release workflow passed. A live token exchange and package publication were not run.