Skip to content

Commit 64755fc

Browse files
chore: added import-certificate workflow (#1196)
* chore: added import-certificate workflow * chore: updated publish to nuget workflow
1 parent f20a281 commit 64755fc

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ jobs:
4040
run: make test-docker release
4141
- run: bash <(curl -s https://codecov.io/bash)
4242

43+
import-certificate:
44+
runs-on: windows-latest
45+
steps:
46+
- uses: actions/checkout@v2
47+
- run: make install
48+
- name: import-certificate
49+
run: |
50+
New-Item -ItemType directory -Path certificate
51+
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CODE_SIGNING_CERTIFICATE }}'
52+
certutil -decode certificate\certificate.txt certificate\certificate.pfx
53+
54+
- name: Upload Artifact
55+
uses: actions/upload-artifact@v3
56+
with:
57+
name: certificate.pfx
58+
path: certificate\certificate.pfx
59+
retention-days: 1
60+
4361
deploy:
4462
name: Deploy
4563
if: success() && github.ref_type == 'tag'
@@ -65,7 +83,7 @@ jobs:
6583
run: |
6684
make release
6785
dotnet nuget sign **/*.nupkg --certificate-path certificate.pfx --certificate-password ${{ secrets.CERTIFICATE_PASSWORD }} --timestamper http://timestamp.digicert.com
68-
dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
86+
dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
6987
7088
- name: Submit metric to Datadog
7189
uses: sendgrid/dx-automator/actions/datadog-release-metric@main

0 commit comments

Comments
 (0)