Release workflow: build only on the release branch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-06 02:07:54 -04:00
parent c7614ecec8
commit 0c2a68ecdb
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ env:
jobs:
version:
name: version
# Only the release branch builds (a manual dispatch from any other ref skips everything). The
# branch itself is writable only by release-managers and org admins (ruleset "release").
if: github.ref == 'refs/heads/release'
runs-on: ubuntu-latest
environment: release
outputs: