Skip to content

Commit 10a3c68

Browse files
committed
Adding step to register signtool with smctl
1 parent 080d7fe commit 10a3c68

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/package.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ jobs:
8181
SM_CLIENT_CERT_FILE: D:\Certificate_pkcs12.p12
8282
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
8383

84+
- name: Register signtool with smctl and verify
85+
if: ${{ runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/') }}
86+
shell: pwsh
87+
env:
88+
SM_HOST: ${{ vars.SM_HOST }}
89+
SM_API_KEY: ${{ secrets.SM_API_KEY }}
90+
SM_CLIENT_CERT_FILE: D:\Certificate_pkcs12.p12
91+
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
92+
run: |
93+
$ErrorActionPreference = 'Stop'
94+
# Register signtool with smctl so it can find it during signing
95+
smctl windows signtool register
96+
# Run healthcheck to confirm everything is connected
97+
smctl healthcheck
98+
8499
- name: Compile
85100
run: |
86101
cargo build --release --target ${{ matrix.target }} -p spacetimedb-cli -p spacetimedb-standalone -p spacetimedb-update

0 commit comments

Comments
 (0)