Fix NuGet publish and add GitHub Release workflow - #2
Merged
Conversation
Main CI no longer authenticode-signs with the IdentityServer SignClient or pushes to myget.org/F/identity. Tag 10.0.0 (or later) to pack, create a GitHub Release with nupkgs, and publish to nuget.org when NUGET_API_KEY is set. Co-authored-by: Jeff Jones <joneja09@users.noreply.github.com>
joneja09
marked this pull request as ready for review
August 26, 2026 17:23
The Release workflow exchanges a GitHub OIDC token for a short-lived nuget.org key via NuGet/login. Set the NUGET_USER repo variable and a matching Trusted Publishing policy; GitHub Releases still work without it. Co-authored-by: Jeff Jones <joneja09@users.noreply.github.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 merge to
mainfailed Windows CI because the leftover IdentityServer4 job still ran./build.ps1 sign(dotnetfoundation SignClient) anddotnet nuget pushtomyget.org/F/identitywith an emptyMYGETsecret.Yes, the NuGet push needed to be fixed. It now uses Trusted Publishing (GitHub OIDC) instead of MyGet or a long-lived API key.
Changes
./build.sh/./build.ps1). No signing, no MyGet.*.*.*tags (andworkflow_dispatch): pack, GitHub Release, nuget.org viaNuGet/login@v1whenNUGET_USERis set.id-token: writeso the job can request a GitHub OIDC token.fetch-depth: 0so MinVer can see tags.build.ps1now stops if a sub-project build fails.nuget.org Trusted Publishing (one-time, in your nuget.org account)
joneja09ForgePoint.Identityrelease.ymlNUGET_USER= your nuget.org profile name (not email).10.0.0to push the already-cut GitHub Release packages to nuget.org.Release
ForgePoint.Identity 10.0.0 is on GitHub with the five nupkgs attached.
Test plan
./build.shon tag 10.0.0; nupkgs are 10.0.0