Skip to content

Commit 19a1850

Browse files
committed
fix: repair workflow
1 parent cfefdec commit 19a1850

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/buildrelease.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,17 @@ jobs:
209209
-o bin/windows-app
210210
211211
- name: '🔐 Sign Windows App (if certificate available)'
212-
if: ${{ secrets.WINDOWS_CERT_BASE64 != '' }}
213212
shell: pwsh
214213
env:
215214
WINDOWS_CERT_BASE64: ${{ secrets.WINDOWS_CERT_BASE64 }}
216215
WINDOWS_CERT_PASSWORD: ${{ secrets.WINDOWS_CERT_PASSWORD }}
217216
run: |
217+
# Check if certificate is configured
218+
if ([string]::IsNullOrEmpty($env:WINDOWS_CERT_BASE64)) {
219+
Write-Host "⚠️ No Windows certificate configured, skipping signing"
220+
exit 0
221+
}
222+
218223
# Decode certificate
219224
$certBytes = [Convert]::FromBase64String($env:WINDOWS_CERT_BASE64)
220225
$certPath = "$(Get-Location)\code_signing.pfx"
@@ -236,7 +241,9 @@ jobs:
236241
}
237242
238243
# Clean up certificate
239-
Remove-Item $certPath -Force
244+
if (Test-Path $certPath) {
245+
Remove-Item $certPath -Force
246+
}
240247
241248
- name: '📦 Create Windows ZIP'
242249
shell: bash

0 commit comments

Comments
 (0)