Skip to content

Commit

Permalink
release: capture nuget signing cert
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ldennington committed Apr 19, 2024
1 parent 47d2e56 commit 09bd04c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,18 @@ jobs:
-u "https://github.com/git-ecosystem/git-credential-manager" `
-acst $env:ACST `
-acsi $env:ACSI `
-acss $env:ACSS
-acss $env:ACSS `
-acsc nuget-signing-certificate.cer
mv nupkg/* .
- name: Publish signed package
- name: Publish signed package and certificate
uses: actions/upload-artifact@v4
with:
name: dotnet-tool-sign
path: nupkg/*.nupkg
path: |
*.nupkg
*.cer
# ================================
# Validate
Expand Down

0 comments on commit 09bd04c

Please sign in to comment.