Add public cert to build

This commit is contained in:
Vladimir Dubrovin 2026-06-03 10:34:38 +03:00
parent 757ad916ec
commit 84879cc0ba
3 changed files with 24 additions and 0 deletions

View File

@ -47,6 +47,13 @@ jobs:
run: | run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}") $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}")
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte) [System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte)
- name: Extract public certificate
shell: pwsh
env:
CERT_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("${{ github.workspace }}\cert.pfx", "$env:CERT_PASSWORD")
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\3proxy.crt", $cert.Export("Cert"))
- name: Sign - name: Sign
shell: pwsh shell: pwsh
run: | run: |
@ -83,6 +90,7 @@ jobs:
copy authors dist\3proxy\ copy authors dist\3proxy\
copy README.md dist\3proxy\ copy README.md dist\3proxy\
copy rus.3ps dist\3proxy\ copy rus.3ps dist\3proxy\
copy 3proxy.crt dist\3proxy\
- name: Get artifact - name: Get artifact
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:

View File

@ -48,6 +48,13 @@ jobs:
run: | run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}") $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}")
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte) [System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte)
- name: Extract public certificate
shell: pwsh
env:
CERT_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("${{ github.workspace }}\cert.pfx", "$env:CERT_PASSWORD")
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\3proxy.crt", $cert.Export("Cert"))
- name: Sign - name: Sign
shell: pwsh shell: pwsh
run: | run: |
@ -84,6 +91,7 @@ jobs:
copy authors dist\3proxy\ copy authors dist\3proxy\
copy README.md dist\3proxy\ copy README.md dist\3proxy\
copy rus.3ps dist\3proxy\ copy rus.3ps dist\3proxy\
copy 3proxy.crt dist\3proxy\
- name: Get artifact - name: Get artifact
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:

View File

@ -47,6 +47,13 @@ jobs:
run: | run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}") $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}")
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte) [System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte)
- name: Extract public certificate
shell: pwsh
env:
CERT_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("${{ github.workspace }}\cert.pfx", "$env:CERT_PASSWORD")
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\3proxy.crt", $cert.Export("Cert"))
- name: Sign - name: Sign
shell: pwsh shell: pwsh
run: | run: |
@ -83,6 +90,7 @@ jobs:
copy authors dist\3proxy\ copy authors dist\3proxy\
copy README.md dist\3proxy\ copy README.md dist\3proxy\
copy rus.3ps dist\3proxy\ copy rus.3ps dist\3proxy\
copy 3proxy.crt dist\3proxy\
- name: Get artifact - name: Get artifact
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with: