Commit 8b94845
committed
ci: make desktop PR/E2E builds fork-safe (no signing secret required)
Builds triggered by `pull_request` from a fork don't receive repository
secrets, so TAURI_SIGNING_PRIVATE_KEY is empty. With createUpdaterArtifacts
enabled, `tauri build` then fails ("a public key has been found, but no
private key"), which is why the `build` and `e2e-desktop` jobs are red on
fork PRs (e.g. #191) while every secret-free check passes.
PR validation only needs a runnable app binary, not signed updater artifacts
(the desktop E2E suite never consumes them — its update-check tests are mocked
or skipped). Disable updater-artifact creation for the PR/E2E builds so they
require no secrets:
- ci.yml `build`: tauri build --config '{"bundle":{"createUpdaterArtifacts":false}}'
- e2e-desktop.yml Linux: drop the `updater` bundle + the same --config override
- e2e-desktop.yml Windows: same override, run under bash so PowerShell does not
mangle the inline JSON quotes
Real signed updater artifacts are still produced by the release flow
(build-tauri.yml / nightly.yml) on trusted refs, which is the only place the
signing key is exposed.
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent 57276b7 commit 8b94845
2 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
243 | 248 | | |
244 | | - | |
245 | | - | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | | - | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | | - | |
106 | | - | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
0 commit comments