From e9d0a75dd5ba1ae18f52c573184c2ce213615cad Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Tue, 19 May 2026 13:13:36 +0300 Subject: [PATCH] ci(prerelease): auto-build on every push to main The build-prerelease workflow was workflow_dispatch-only, which meant every commit needed a manual run dispatch before any host could upgrade. That left rolling fixes (e.g. f9f5fa4's StateDirectory fix) sitting on main with no published RPM behind them, so deploy.sh silently fell back to an older prerelease. Add 'push: branches: [main]' alongside the existing workflow_dispatch trigger; the unstable channel now tracks head automatically. The concurrency group is keyed on ${{ github.ref }} with cancel-in-progress so successive rapid-fire pushes coalesce to one build (latest wins) rather than queueing every intermediate commit. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/build-prerelease.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-prerelease.yml b/.gitea/workflows/build-prerelease.yml index 4438b85..422e8c1 100644 --- a/.gitea/workflows/build-prerelease.yml +++ b/.gitea/workflows/build-prerelease.yml @@ -12,6 +12,11 @@ name: build-prerelease # so they sort BELOW the eventual 0.1.16-1 stable release. on: + # Auto-build on every push to main so the unstable channel tracks + # head without a manual dispatch step. + push: + branches: [main] + # Manual dispatch still available to build from a non-main ref. workflow_dispatch: inputs: ref: @@ -20,7 +25,9 @@ on: default: "" concurrency: - group: prerelease-build + # Coalesce on branch+event so successive pushes don't pile up; the + # latest push wins. + group: prerelease-build-${{ github.ref }} cancel-in-progress: true env: