Publish a numbered beta after each validated push to develop (#60)

The beta job runs after the core checks on a host-mode WSL runner with the
Windows toolchain, builds the push's commit with scripts/package and
publishes it as a prerelease: tag, draft, the four files, then publish.
The cycle target is the workspace version (1.0.0); beta tags are the
counter, created atomically after the build. A rerun reuses or completes
its own publication; a single runner serializes the jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nessarandClaude Opus 5.5 committed 2026-11-20 16:29:50 +01:00
1 parent 093078731e
commit 9b87492b43
9 files changed
+477 -6

No files matched your search

+29 -1
View File
@@ -1,4 +1,5 @@
# Only the core crate is checked: the app crate (GPUI) only builds on Windows (ADR-0003).
# The checks cover the core crate only: the app crate (GPUI) builds only on Windows (ADR-0003),
# which the beta job does on its own runner after them, for each push to develop (docs/publication.md).
name: CI
on:
@@ -6,6 +7,11 @@ on:
push:
branches:
- main
- develop
# Read-only job token, so pull request checks have no way to publish.
permissions:
contents: read
jobs:
core:
@@ -26,3 +32,25 @@ jobs:
- name: Tests
run: cargo test -p arena-tracker-core --locked
- name: Beta publication tests
run: python3 scripts/test_publish_beta.py
beta:
needs: core
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
# The Windows build runner, in WSL host mode, one job at a time: betas queue, none is cancelled.
runs-on: arena-windows
permissions:
contents: write # Gitea: tags and Releases.
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # The beta tags and the history that numbering compares.
persist-credentials: false # The write token stays out of .git/config during the build.
- name: Publish the beta
env:
ARENA_SIGNING_KEY_PEM: ${{ secrets.ARENA_SIGNING_KEY }}
GITEA_TOKEN: ${{ github.token }}
run: scripts/publish-beta "$GITHUB_SHA"