Skip to content

Commit 97a797b

Browse files
committed
Extract signing certificate
1 parent af40c09 commit 97a797b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release-signed.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ jobs:
8080
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
8181
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
8282

83-
- name: setup dotnet sign
84-
run: dotnet tool install --global sign --version 0.9.1-beta.24529.1
83+
- name: setup tools
84+
run: |
85+
dotnet tool install --global sign --version 0.9.1-beta.24529.1
86+
dotnet tool install --global Knapcode.CertificateExtractor --version 0.1.1
8587
8688
- name: sign
8789
run: >
@@ -101,6 +103,13 @@ jobs:
101103
subject-path: 'dist/*.nupkg'
102104
show-summary: true
103105

106+
- name: extract certificate
107+
shell: pwsh
108+
run: |
109+
dotnet tool install --global Knapcode.CertificateExtractor
110+
$nupkg = Get-ChildItem -Filter dist\*.nupkg | Select-Object -First 1
111+
nuget-cert-extractor --file $nupkg --output dist --code-signing --author --leaf
112+
104113
- name: publish artifact
105114
uses: actions/upload-artifact@v4
106115
with:

0 commit comments

Comments
 (0)