Update publish_nuget.yml

This commit is contained in:
Morten Nielsen 2021-12-22 19:59:07 -08:00 committed by GitHub
parent a0b18c7ca6
commit 5a24a4f3af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,8 +14,17 @@ jobs:
- name: Setup Visual Studio Command Prompt
uses: microsoft/setup-msbuild@v1.0.2
- name: Get certificate
id: cert_file
uses: timheuer/base64-to-file@master
with:
fileName: 'certfile.pfx'
encodedString: ${{ secrets.BASE64_ENCODED_PFX }}
- name: Build
run: |
msbuild /restore /t:Build src/NmeaParser/NmeaParser.csproj /p:Configuration=Release
msbuild /restore /t:Build src/NmeaParser/NmeaParser.csproj /p:Configuration=Release /p:CertificatePath=${{ steps.cert_file.outputs.filePath }} /p:CertificatePassword=${{ secrets.PFX_PASSWORD }}
- name: Sign NuGet Package
run: nuget sign artifacts\NuGet\Release\*.nupkg -CertificatePath ${{ steps.cert_file.outputs.filePath }} -CertificatePassword ${{ secrets.PFX_PASSWORD }} -Timestamper http://timestamp.digicert.com NonInteractive