ci: refuse a release while the updater public key is empty

This commit is contained in:
tiennm99 committed 2026-10-21 16:45:27 +07:00
1 parent 4918a5e3bd
commit 94722f2741
3 files changed
+16 -1

No files matched your search

+11
View File
@@ -45,6 +45,17 @@ jobs:
}
Write-Host "Cargo version $cargoVersion matches tag $tag"
# An exe without the updater public key can never verify, and so never
# install, a later update; every install of it would be stranded.
- name: Refuse an empty updater public key
shell: pwsh
run: |
$pubkey = (Get-Content tauri.conf.json -Raw | ConvertFrom-Json).plugins.updater.pubkey
if ([string]::IsNullOrWhiteSpace($pubkey)) {
Write-Error "plugins.updater.pubkey in tauri.conf.json is empty: put the updater public key there before releasing."
exit 1
}
- name: Build release
run: cargo build --release --locked