Skip to content

Publish to NuGet using trusted publishing - #391

Merged
jchannon merged 1 commit into
mainfrom
nuget-trusted-publishing
Nov 12, 2026
Merged

jchannon merged 1 commit into
mainfrom
nuget-trusted-publishing

Conversation

@jchannon

Copy link
Copy Markdown
Member

The 11.0.0 release run failed at the NuGet push because the NUGET_KEY API key has expired.

This switches the NuGet push steps to nuget.org trusted publishing: a NuGet/login step exchanges the workflow's identity for a short-lived API key, which is passed to push.sh in place of the NUGET_KEY secret. The login step only runs on release tag pushes. Feedz publishing is unchanged.

Requires the trusted publishing policy on nuget.org for CarterCommunity/Carter and dotnetcore.yml, which is already in place.

🤖 Generated with Claude Code

Get a short-lived NuGet API key from the nuget.org trusted publishing
policy with NuGet/login instead of the NUGET_KEY secret, which had
expired.

Co-Authored-By: Claude <noreply@anthropic.com>
@jchannon
jchannon merged commit fca38a8 into main Nov 12, 2026
1 check passed
@jchannon
jchannon deleted the nuget-trusted-publishing branch November 12, 2026 13: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.

1 participant