NmeaParser/.github/workflows/publish_nuget.yml
Morten Nielsen 7fa2a60340 Fix dash
2021-12-23 13:17:57 -08:00

31 lines
961 B
YAML

name: Publish NuGet
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Clone NmeaParser
uses: actions/checkout@v1
- 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 /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