Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Install ca cert chain in probe path of dotnet nuget sign
  • Loading branch information
russcam committed May 24, 2024
1 parent c36ce63 commit 7ae65a7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ jobs:

- name: Sign Nuget package
env:
NUGET_API_KEY: ${{ secrets.NUGET_SIGNING_PFX }}
NUGET_SIGNING_PFX: ${{ secrets.NUGET_SIGNING_PFX }}
NUGET_ROOT_SIGNING_CERT: ${{ secrets.NUGET_ROOT_SIGNING_CERT }}
run: |
echo "${secrets.NUGET_SIGNING_PFX}" | base64 --decode > private.pfx
sudo mkdir -p /etc/pki/ca-trust/extracted/pem/
echo "$NUGET_ROOT_SIGNING_CERT" | sudo tee -a /etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem > /dev/null
echo "$NUGET_SIGNING_PFX" | openssl base64 -d -out private.pfx
dotnet nuget sign nuget/*.nupkg --certificate-path private.pfx --timestamper http://timestamp.sectigo.com
shell: bash

Expand All @@ -42,4 +45,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: LinguaNugetPkg
path: nuget
path: nuget

0 comments on commit 7ae65a7

Please sign in to comment.