From b0b6f0039ab0978d9f990db2b79aab3bf8a0463a Mon Sep 17 00:00:00 2001 From: Athira Sabu <102021496+AsabuHere@users.noreply.github.com> Date: Tue, 7 Nov 2023 14:01:10 +0530 Subject: [PATCH] Create test-nuget-certificates.yml --- .github/workflows/test-nuget-certificates.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test-nuget-certificates.yml diff --git a/.github/workflows/test-nuget-certificates.yml b/.github/workflows/test-nuget-certificates.yml new file mode 100644 index 000000000..82cf08896 --- /dev/null +++ b/.github/workflows/test-nuget-certificates.yml @@ -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 +