Skip to content

Update test-nuget-certificates.yml #3

Update test-nuget-certificates.yml

Update test-nuget-certificates.yml #3

name: Test Nuget Certificates
on:
push:
branches: [ '*' ]
tags: [ '*' ]
pull_request:
branches: [ main ]
jobs:
import-certificate:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: make install
- name: import-certificate
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CODE_SIGNING_CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
Get-PfxCertificate -FilePath certificate\certificate.pfx | Export-Certificate -FilePath OutputCert.der -Type CERT
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: certificate.pfx
path: certificate\certificate.pfx
retention-days: 1