Skip to content

Commit f644022

Browse files
committed
Extract trusted signing certificate
1 parent cde52c1 commit f644022

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ jobs:
151151
env:
152152
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
153153

154+
- name: Extract trusted signing certificate
155+
if: success() && steps.build.outputs.sign_binaries == 'true' && steps.build.outputs.publish_nuget == 'true'
156+
run: |
157+
$nupkg = Get-ChildItem -Path '${{ github.workspace}}\dist' -Filter '*.nupkg' | Select-Object -First 1
158+
nuget-cert-extractor --file $nupkg --output '${{ github.workspace}}\dist' --code-signing --author --leaf
159+
154160
- name: Archive NetOffice packages
155161
if: success() && matrix.configuration == 'Release'
156162
uses: actions/upload-artifact@v5

0 commit comments

Comments
 (0)