Skip to content

Commit 3ca9351

Browse files
author
Ahmad Noman Musleh
committed
Added FileEncrypt app
1 parent a14e76a commit 3ca9351

6 files changed

Lines changed: 4 additions & 20 deletions

File tree

.github/workflows/publish_nuget_package_prereleased.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-latest
9+
runs-on: windows-latest
1010

1111
env:
1212
BUILD_CONFIG: 'Release'
@@ -31,20 +31,12 @@ jobs:
3131

3232
- name: Build
3333
run: dotnet build $PROJECT --configuration $BUILD_CONFIG --no-restore
34-
35-
- name: Set Execution Permission For decrypt_certificate.sh
36-
run: chmod +x ./decrypt_certificate.sh
3734

3835
- name: Decrypt Certificate
39-
run: ./decrypt_certificate.sh
40-
env:
41-
CERTIFICATE_GPG_PASSPHRASE: ${{secrets.CERTIFICATE_GPG_PASSPHRASE}}
42-
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
36+
run: .\FileEncrypt.exe decrypt .\certificate.pfx.encrypted ${{secrets.CERTIFICATE_DECRYPTION_KEY}} ${{secrets.CERTIFICATE_DECRYPTION_IV}}
4537

4638
- name: Sign Package
47-
run: nuget sign **\*.nupkg -CertificatePath $HOME/secrets/certificate.pfx -Timestamper http://timestamp.digicert.com/ -CertificatePassword ${{secrets.CERTIFICATE_PASSWORD}} -NonInteractive
39+
run: nuget sign **\*.nupkg -CertificatePath certificate.pfx -Timestamper http://timestamp.digicert.com/ -CertificatePassword ${{secrets.CERTIFICATE_PASSWORD}} -NonInteractive
4840

4941
- name: Publish Package
5042
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json'

FileEncrypt.exe

55.6 MB
Binary file not shown.

certificate.pfx.encrypted

8.59 KB
Binary file not shown.

certificate.pfx.gpg

-7.02 KB
Binary file not shown.

decrypt_certificate.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

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-rc11</Version>
12+
<Version>1.3.7-rc12</Version>
1313
<Platforms>AnyCPU</Platforms>
1414
<Company>Spotware</Company>
1515
<Authors>Spotware</Authors>

0 commit comments

Comments
 (0)