Skip to content

Commit

Permalink
Merge pull request #85 from Chia-Network/update-windows-signing
Browse files Browse the repository at this point in the history
Update to digicert HSM signing for windows
  • Loading branch information
TheLastCicada authored Aug 15, 2023
2 parents bfd43b5 + d5516f1 commit a8a6503
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build-installers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,15 @@ jobs:
cp ./dist/main${{ matrix.os.executable-extension }} ./artifacts/${{ matrix.config.app-name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}_${{ matrix.arch.artifact-name }}${{ matrix.os.executable-extension }}
# Windows Code Signing
- name: Decode code signing cert into an encrypted file
uses: kitek/[email protected]
with:
encoded-value: ${{ secrets.WIN_CODE_SIGN_CERT }}
destination-file: .\win_code_sign_cert.pfx
if: matrix.os.matrix == 'windows'


- name: Sign windows artifacts
uses: chia-network/actions/sign/windows@main
if: matrix.os.matrix == 'windows'
uses: chia-network/actions/digicert/windows-sign@main
with:
certificate_path: .\win_code_sign_cert.pfx
certificate_password: ${{ secrets.WIN_CODE_SIGN_PASSWORD }}
sm_api_key: ${{ secrets.SM_API_KEY }}
sm_client_cert_file_b64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
sm_client_cert_password: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
sm_code_signing_cert_sha1_hash: ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}
file: ./artifacts/${{ matrix.config.app-name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}_${{ matrix.arch.artifact-name }}.exe
if: matrix.os.matrix == 'windows'

- name: Create .deb Package
env:
Expand Down

0 comments on commit a8a6503

Please sign in to comment.