Skip to content

Commit f797532

Browse files
committed
Debugging workflow.
1 parent 0e53418 commit f797532

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/az-debugging.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "az-debugging"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
publish-tauri:
11+
permissions:
12+
contents: write
13+
14+
runs-on: windows-2022
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: install dependencies (windows only)
19+
run: |
20+
nuget.exe install Microsoft.Trusted.Signing.Client -Version 1.0.53 -x
21+
22+
- name: Set up Windows Kit into PATH (windows only)
23+
run: |
24+
echo "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.22621.0\x64\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
25+
26+
- name: Test manually signing (windows only)
27+
if: "!cancelled()"
28+
run: |
29+
signtool.exe sign /v /debug /fd SHA256 /tr http://timestamp.acs.microsoft.com /td SHA256 /dlib ..\\Microsoft.Trusted.Signing.Client\\bin\\x64\\Azure.CodeSigning.Dlib.dll /dmdf trusted-signing-metadata.json src-tauri/target\release\zmk-studio.exe
30+
31+
- uses: azure/login@v2
32+
with:
33+
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
34+
35+
- name: Azure CLI script
36+
if: "!cancelled()"
37+
uses: azure/cli@v2
38+
with:
39+
azcliversion: latest
40+
inlineScript: |
41+
az trustedsigning certificate-profile list -g ZMKStudio --account-name ZMKStudio

0 commit comments

Comments
 (0)