Publish betas from the build PC instead of a CI runner (#60)
A runner on the build PC would run pull request code without isolation next to the signing key, and only that PC has the Windows toolchain. scripts/publish-beta now runs there: it fetches develop and the beta tags, refuses a commit absent from develop on Gitea or whose CI checks did not pass, and keeps the numbering, draft-then-publish and reruns. The key stays in its file; the beta job and its secret are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #69.
This commit is contained in:
1 parent
5e757d2a63
commit
19c4cf940d
5 files changed
+75
-95
No files matched your search
+3
-22
@@ -1,5 +1,5 @@
|
||||
# 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).
|
||||
# Only the core crate is checked: the app crate (GPUI) only builds on Windows (ADR-0003).
|
||||
# Betas of develop are published from the build PC once these checks pass (docs/publication.md).
|
||||
name: CI
|
||||
|
||||
on:
|
||||
@@ -9,7 +9,7 @@ on:
|
||||
- main
|
||||
- develop
|
||||
|
||||
# Read-only job token, so pull request checks have no way to publish.
|
||||
# CI never publishes: a read-only job token is enough.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -35,22 +35,3 @@ jobs:
|
||||
|
||||
- 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"
|
||||
Reference in new issue
Block a user