ci: nightly builds + self-serve PR previews#419
Draft
NewtTheWolf wants to merge 6 commits into
Draft
Conversation
Adds a lightweight preview/nightly pipeline without touching stable release semantics, and de-duplicates the shared build config. - build.yml: reusable workflow_call build matrix (single source of truth for the macOS/Linux/Windows signed+notarized build). Fixes a dead `macos-13` matrix reference (now `macos-15-intel`). - release.yml: refactored to delegate to build.yml; triggers and prerelease logic unchanged (tag push -> draft release, dispatch pr_number -> forced prerelease). - nightly.yml: daily cron (+ manual) builds main into a single rolling `nightly` prerelease, deleted+recreated each run. prerelease flag keeps it out of AUR/Snap/Winget. - preview.yml: unsigned per-PR preview builds -> Actions artifacts (no tag/release, 14d retention). Triggered by the `preview` label or a `/preview` comment (PR author or write access). A sticky bot comment reports status + download link. Fork-safe: build runs with contents:read and no secrets; commenting is a separate write-scoped job that never checks out fork code.
…e doesn't cover it)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A real (even draft) GitHub Release per PR clutters the releases page and is the wrong tool for throwaway test builds. This adds a lightweight preview/nightly pipeline without changing stable release semantics, and de-duplicates the build config shared by all pipelines.
What
build.yml(new) — reusableworkflow_callbuild matrix (macOS arm64+intel, Linux AppImage/deb, Windows nsis + portable exe, signing/notarization). Single source of truth so signing config can't drift between pipelines. Also fixes a deadmacos-13matrix reference (nowmacos-15-intel).release.yml(refactored, −115/+18) — same triggers and prerelease logic, now delegates the build tobuild.yml. Tag push → draft release;workflow_dispatch+pr_number→ forced prerelease.nightly.yml(new) — dailycron(+ manual) buildsmaininto a single rollingnightlyprerelease (deleted + recreated each run).prerelease: truekeeps it out of AUR/Snap/Winget.preview.yml(new) — unsigned per-PR previews → Actions artifacts (no tag, no release, 14-day retention).Preview flow
Triggered two ways:
previewlabel, or/preview(self-serve, works for fork authors).Three jobs with separate permissions:
authorize(pull-requests: read) — decides + gates the commandbuild(contents: read, no secrets) — builds fork code safely (worst case = wasted runner minutes, never token/secret theft)comment(pull-requests: write) — posts a sticky bot comment with status + download link; never checks out fork codeA sticky bot comment reports
✅ Preview build ready — [Download]/❌ ….Design notes
APPLE_SIGNING_IDENTITY: "-", no cert) avoids the Gatekeeper "damaged" error; testers right-click → Open (Windows: "Run anyway")./previewcommand body is read only inside a GitHubif:expression, never interpolated into a shell.pull_requesttoken is read-only, so the label path builds but can't self-comment — fork authors use/preview(privilegedissue_commentcontext) to get build + comment.release.yml→workflow_dispatch(pr_number).Setup (repo admin)
previewlabel already exists.marocchino/sticky-pull-request-comment@v2(widely used)./previewcommand path is gated by the author-or-write check in the workflow).Testing
YAML + reusable-workflow wiring validated locally. Signing/notarization and the
secrets: inheritboundary only exercise on GitHub runners — therelease.ymlrefactor touches the live release path, please review that diff.