Commit 3482eec
fix(ci): skip updater signing on PR builds from forks/Dependabot (#203)
* fix(ci): skip updater signing on PR builds
PRs from forks (prefrontalsys/*) and Dependabot can't read repo secrets,
so ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} evaluates to "" and
tauri-action fails with "Missing comment in secret key" after an
otherwise-successful Rust build. The old comment claimed signing only
ran on pushes to main, but the gate was never implemented.
Split the Build Tauri app step by github.event_name:
- pull_request: no signing env vars, --bundles omits the updater target
(per-platform bundle list preserves the existing upload-artifacts
if-no-files-found: error contract).
- push: unchanged behavior -- signed artifacts with the macOS x86_64
app+updater special case intact.
Release workflow untouched since it only runs on tag push.
* fix(ci): override createUpdaterArtifacts=false on PR builds
Previous attempt gated the signing env vars behind github.event_name,
but tauri build still fails with "A public key has been found, but no
private key" because pubkey in tauri.conf.json triggers the signing
check independent of --bundles. Override bundle.createUpdaterArtifacts
to false via inline --config JSON for PR builds.
Also simplified the per-platform --bundles list -- unnecessary now that
createUpdaterArtifacts is off. Kept the macOS x86_64 "--bundles app"
quirk to mirror the push step's "--bundles app,updater".
---------
Co-authored-by: Tyler Gray <tylerg@emergentsoftware.net>1 parent 0927b9d commit 3482eec
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
116 | 129 | | |
117 | 130 | | |
118 | 131 | | |
119 | | - | |
120 | 132 | | |
121 | 133 | | |
122 | 134 | | |
| |||
0 commit comments