Skip to content

Commit a14e76a

Browse files
author
Ahmad Noman Musleh
committed
Added importing certificate step
1 parent f60ebab commit a14e76a

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/publish_nuget_package_prereleased.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717

1818
- name: Setup NuGet
1919
uses: NuGet/setup-nuget@v1.0.5
20+
with:
21+
nuget-api-key: ${{secrets.NUGET_API_KEY}}
22+
nuget-version: 'latest'
2023

2124
- name: Restore dependencies
2225
run: nuget restore $PROJECT
@@ -37,11 +40,14 @@ jobs:
3740
env:
3841
CERTIFICATE_GPG_PASSPHRASE: ${{secrets.CERTIFICATE_GPG_PASSPHRASE}}
3942

43+
- name: Importing Certificate
44+
run: sudo cp $HOME/secrets/certificate.pfx /usr/share/ca-certificates/certificate.pfx ; sudo dpkg-reconfigure ca-certificates ; sudo update-ca-certificates ; git config --global http.sslCAInfo /usr/share/ca-certificates/certificate.pfx
45+
4046
- name: Sign Package
4147
run: nuget sign **\*.nupkg -CertificatePath $HOME/secrets/certificate.pfx -Timestamper http://timestamp.digicert.com/ -CertificatePassword ${{secrets.CERTIFICATE_PASSWORD}} -NonInteractive
4248

4349
- name: Publish Package
44-
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
50+
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json'
4551

46-
- name: Publish symbols
47-
run: nuget push **\*.snupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
52+
- name: Publish Symbols
53+
run: nuget push **\*.snupkg -Source 'https://api.nuget.org/v3/index.json'

src/OpenAPI.Net/OpenAPI.Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageTags>cTrader, Open API, Spotware</PackageTags>
1010
<Description>A .NET RX library for Spotware Open API</Description>
1111
<PackageId>Spotware.OpenAPI.Net</PackageId>
12-
<Version>1.3.7-rc10</Version>
12+
<Version>1.3.7-rc11</Version>
1313
<Platforms>AnyCPU</Platforms>
1414
<Company>Spotware</Company>
1515
<Authors>Spotware</Authors>

0 commit comments

Comments
 (0)