@@ -46,23 +46,23 @@ jobs:
46
46
dotnet tool install --global dotnet-sonarscanner --version 5.5.3
47
47
make cover
48
48
49
- import-certificate :
50
- runs-on : windows-latest
51
- steps :
52
- - uses : actions/checkout@v2
53
- - run : make install
54
- - name : import-certificate
55
- run : |
56
- New-Item -ItemType directory -Path certificate
57
- Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CODE_SIGNING_CERTIFICATE }}'
58
- certutil -decode certificate\certificate.txt certificate\certificate.pfx
59
-
60
- - name : Upload Artifact
61
- uses : actions/upload-artifact@v3
62
- with :
63
- name : certificate.pfx
64
- path : certificate\certificate.pfx
65
- retention-days : 1
49
+ # import-certificate:
50
+ # runs-on: windows-latest
51
+ # steps:
52
+ # - uses: actions/checkout@v2
53
+ # - run: make install
54
+ # - name: import-certificate
55
+ # run: |
56
+ # New-Item -ItemType directory -Path certificate
57
+ # Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CODE_SIGNING_CERTIFICATE }}'
58
+ # certutil -decode certificate\certificate.txt certificate\certificate.pfx
59
+ #
60
+ # - name: Upload Artifact
61
+ # uses: actions/upload-artifact@v3
62
+ # with:
63
+ # name: certificate.pfx
64
+ # path: certificate\certificate.pfx
65
+ # retention-days: 1
66
66
67
67
code-signing :
68
68
runs-on : windows-latest
@@ -124,28 +124,10 @@ jobs:
124
124
mkdir D:\a\stm-github-action-demo\stm-github-action-demo\dist\
125
125
shell : cmd
126
126
127
- - name : Debug Android Build Tools
128
- run : |
129
- ls D:\a\stm-github-action-demo\stm-github-action-demo\
130
-
131
- - name : Signing using Nuget
132
- run : |
133
- make release
134
- copy D:\a\stm-github-action-demo\stm-github-action-demo\UNSIGNED.nupkg D:\a\stm-github-action-demo\stm-github-action-demo\dist\UNSIGNED.nupkg
135
- nuget sign "D:\a\stm-github-action-demo\stm-github-action-demo\dist\UNSIGNED.nupkg" -Timestamper http://timestamp.digicert.com -outputdirectory "D:\a\stm-github-action-demo\stm-github-action-demo\dist\NugetSigned" -CertificateFingerprint ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} -HashAlgorithm SHA256 -Verbosity detailed -Overwrite
136
- nuget verify -All "D:\a\stm-github-action-demo\stm-github-action-demo\dist\NugetSigned\*"
137
-
138
- - name : Upload artifacts
139
- uses : actions/upload-artifact@v2
140
- with :
141
- name : windows-latest
142
- path : |
143
- dist
144
-
145
127
deploy :
146
128
name : Deploy
147
129
if : success() && github.ref_type == 'tag'
148
- needs : [ test, import-certificate ]
130
+ needs : [ test, code-signing ]
149
131
runs-on : ubuntu-latest
150
132
steps :
151
133
- name : Checkout twilio-csharp
@@ -186,8 +168,12 @@ jobs:
186
168
- name : Publish package to NuGet
187
169
run : |
188
170
make release
189
- dotnet nuget sign **/*.nupkg --certificate-path certificate.pfx --certificate-password ${{ secrets.CERTIFICATE_PASSWORD }} --timestamper http://timestamp.digicert.com
190
- dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
171
+ # dotnet nuget sign **/*.nupkg --certificate-path certificate.pfx --certificate-password ${{ secrets.CERTIFICATE_PASSWORD }} --timestamper http://timestamp.digicert.com
172
+ # dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
173
+ copy D:\a\stm-github-action-demo\stm-github-action-demo\UNSIGNED.nupkg D:\a\stm-github-action-demo\stm-github-action-demo\dist\UNSIGNED.nupkg
174
+ nuget sign "D:\a\stm-github-action-demo\stm-github-action-demo\dist\UNSIGNED.nupkg" -Timestamper http://timestamp.digicert.com -outputdirectory "D:\a\stm-github-action-demo\stm-github-action-demo\dist\NugetSigned" -CertificateFingerprint ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} -HashAlgorithm SHA256 -Verbosity detailed -Overwrite
175
+ nuget verify -All "D:\a\stm-github-action-demo\stm-github-action-demo\dist\NugetSigned\*"
176
+ nuget push "D:\a\stm-github-action-demo\stm-github-action-demo\dist\UNSIGNED.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
191
177
192
178
- name : Submit metric to Datadog
193
179
uses : sendgrid/dx-automator/actions/datadog-release-metric@main
0 commit comments