Skip to content

fix(ci): don't sign updater artifacts in nightly - #72

Merged
loss-and-quick merged 1 commit into
mainfrom
fix/nightly-no-updater-signing
Jun 21, 2026
Merged

fix(ci): don't sign updater artifacts in nightly#72
loss-and-quick merged 1 commit into
mainfrom
fix/nightly-no-updater-signing

Conversation

@loss-and-quick

Copy link
Copy Markdown
Owner

Summary

The nightly desktop build failed at bundling:

Error A public key has been found, but no private key. Make sure to set TAURI_SIGNING_PRIVATE_KEY environment variable.

bundle.createUpdaterArtifacts: true is set globally in tauri.conf.json, so every tauri build (including the intentionally unsigned nightly) tries to emit a signed .sig and aborts when the minisign key isn't present. Only release.yml wires TAURI_SIGNING_PRIVATE_KEY.

Fix: override bundle.createUpdaterArtifacts to false for the nightly build (an extra --config). Nightly artifacts are unsigned test builds the updater never points at, so they don't need a .sig. Release signing is unchanged.

Affected layer

  • CI / .github/

Verification

  • actionlint .github/workflows/nightly.yml clean
  • The --config override merges over tauri.bundle.conf.json (later --config wins; deep-merged, so other bundle settings are preserved)

Notes for reviewers

The secret was set correctly — the problem was purely that nightly never passed it (by design) yet the global flag forced signing. Disabling the artifact for nightly is cleaner than exposing the signing key to scheduled builds.

`bundle.createUpdaterArtifacts` is true globally, so `tauri build` demanded the
minisign key and failed the (intentionally unsigned) nightly with "A public key has
been found, but no private key". Override it to false for the nightly build — only
release.yml has the signing key, and the updater never points at nightly.
@github-actions github-actions Bot added the ci CI / workflows (.github/) label Jun 21, 2026
@loss-and-quick
loss-and-quick merged commit 748672b into main Jun 21, 2026
8 checks passed
@loss-and-quick
loss-and-quick deleted the fix/nightly-no-updater-signing branch June 21, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI / workflows (.github/)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant