From d580091c705f6ec8488534e5c2b77ddd2bd344a4 Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Fri, 21 Jul 2023 21:47:20 -0700 Subject: [PATCH] build: Try adding nuget signing to CI --- .github/workflows/build.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 114e2060..831d1d0c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,7 +5,7 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest strategy: matrix: dotnet-version: [ '6.0.x' ] @@ -30,3 +30,9 @@ jobs: run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore + - name: Sign Exported Nuget Packages + env: + PFX_KEY: ${{ secrets.NPLABS_WINDOWS_20210514_SIGNING_KEY }} + run: | + $pfxPath = Join-Path -Path $env:RUNNER_TEMP -ChildPath "cert.pfx"; + nuget sign **\*.nupkg -CertificatePath $pfxPath -CertificatePassword $env:PFX_KEY -Timestamper http://timestamp.comodoca.com/rfc3161