Skip to content

Commit

Permalink
build: Try adding nuget signing to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Jul 22, 2023
1 parent 9cd5f77 commit d580091
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
build:

runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '6.0.x' ]
Expand All @@ -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

0 comments on commit d580091

Please sign in to comment.