Skip to content

Add NuGet trusted publishing workflow - #15

Merged
kampute merged 1 commit into
mainfrom
add-nuget-trusted-publishing
Oct 26, 2026
Merged

kampute merged 1 commit into
mainfrom
add-nuget-trusted-publishing

Conversation

@kampute

@kampute kampute commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • publish Kampute.DocToolkit from GitHub Releases
  • authenticate to NuGet.org through Trusted Publishing and GitHub OIDC
  • restore the strong-name key only while packing, then remove it before login and publication
  • reject releases whose vX.Y.Z tag does not match the generated package version

Verification

  • dotnet build Kampute.DocToolkit.sln --configuration Release (zero warnings and errors)
  • dotnet test Kampute.DocToolkit.sln --no-build --configuration Release --verbosity minimal (3,793 passed)
  • signed package validation produced Kampute.DocToolkit.3.2.0.nupkg and its symbol package
  • git diff --check main...HEAD

Operational prerequisites

The NuGet trusted-publisher policy must match repository kampute/doc-toolkit, workflow publish.yml, and environment nuget. The environment must provide NUGET_USER and SIGNING_KEY_BASE64.

@kampute
kampute merged commit 2d5bbf0 into main Oct 26, 2026
1 check passed
@kampute
kampute deleted the add-nuget-trusted-publishing branch October 26, 2026 12:38
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