Skip to content

Commit 87b3a1a

Browse files
authored
release: capture nuget signing cert (#1594)
NuGet requires that signed packages have a matching [registered signing certificate](https://learn.microsoft.com/en-us/nuget/create-packages/sign-a-package#register-the-certificate-on-nugetorg). Update release workflow to capture this certificate from the Sign CLI tool and upload it as a release artifact. Note that this means we will need to manually update this certificate to the [`git-credential-manager` organization](https://www.nuget.org/profiles/git-credential-manager) in nuget.org prior to publishing the .NET tool version for each release. Tested the end-to-end flow in [my fork](https://github.com/ldennington/git-credential-manager) which resulted in publication of [this package](https://int.nugettest.org/packages/git-credential-manager) to the NuGet QA Gallery.
2 parents d9ac33c + 09bd04c commit 87b3a1a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,13 +464,18 @@ jobs:
464464
-u "https://github.com/git-ecosystem/git-credential-manager" `
465465
-acst $env:ACST `
466466
-acsi $env:ACSI `
467-
-acss $env:ACSS
467+
-acss $env:ACSS `
468+
-acsc nuget-signing-certificate.cer
469+
470+
mv nupkg/* .
468471
469-
- name: Publish signed package
472+
- name: Publish signed package and certificate
470473
uses: actions/upload-artifact@v4
471474
with:
472475
name: dotnet-tool-sign
473-
path: nupkg/*.nupkg
476+
path: |
477+
*.nupkg
478+
*.cer
474479
475480
# ================================
476481
# Validate

0 commit comments

Comments
 (0)