Skip to content

Commit 09bd04c

Browse files
committed
release: capture nuget signing cert
NuGet requires that signed packages have a matching registered signing certificate [1]. Update release workflow to capture this certificate from the Sign CLI tool and upload it as a release artifact. 1: https://learn.microsoft.com/en-us/nuget/create-packages/sign-a-package#register-the-certificate-on-nugetorg
1 parent 47d2e56 commit 09bd04c

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)