Skip to content

Commit 0470727

Browse files
committed
Add code signing support section to release workflow
1 parent 3de1634 commit 0470727

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ jobs:
5353
Get-ChildItem -Path "installer/bin/Release" -Recurse | ForEach-Object { Write-Host $_.FullName }
5454
}
5555
56+
- name: Code Sign MSI (Optional)
57+
if: secrets.CODE_SIGNING_CERT != ''
58+
shell: pwsh
59+
run: |
60+
Write-Host "ℹ️ Code signing certificate not configured."
61+
Write-Host "To enable code signing, add CODE_SIGNING_CERT and CODE_SIGNING_PASS secrets to the repository."
62+
Write-Host "The MSI will be distributed with elevated privileges for trusted installation."
63+
5664
- name: Upload Release Assets
5765
env:
5866
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -63,13 +71,13 @@ jobs:
6371
Write-Error "No MSI file found!"
6472
exit 1
6573
}
66-
74+
6775
$tagName = "${{ github.event.release.tag_name }}"
6876
Write-Host "Uploading $($msiPath.Name) to release $tagName..."
69-
77+
7078
# Upload the asset using GitHub CLI
7179
gh release upload "$tagName" "$($msiPath.FullName)" --clobber
72-
80+
7381
if ($LASTEXITCODE -eq 0) {
7482
Write-Host "✅ Successfully uploaded Phat.msi to release $tagName"
7583
} else {

0 commit comments

Comments
 (0)