-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 | ||
openssl pkcs12 -in certificate\certificate.pfx -out mycerts.crt -nokeys -clcerts | ||
openssl x509 -inform pem -in mycerts.crt -outform der -out mycerts.cer | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: certificate.pfx | ||
path: certificate\certificate.pfx | ||
retention-days: 1 | ||
|