File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments