Publish release metadata to R2 channels (#34508) · zimushui/code@a148e0b · GitHub
Skip to content

Commit a148e0b

Browse files
zsol-openaicopyberry
authored andcommitted
Publish release metadata to R2 channels (openai#34508)
## What changed - Publish the verified `release.json` metadata to `codex/channels/latest` for stable releases and `codex/channels/prerelease` for prereleases. - Pass the release classification through the reusable R2 workflow so GitHub Releases and R2 channels use the same stable-versus-prerelease decision. - Allow channel objects to be replaced while keeping versioned release objects immutable, and verify each channel upload before completing the publication. GitOrigin-RevId: bd5c728c5565befe42b041ee1a032b111daca1c2
1 parent 94bb6a0 commit a148e0b

3 files changed

Lines changed: 71 additions & 8 deletions

File tree

‎.github/scripts/publish_r2_release.py‎

Lines changed: 47 additions & 5 deletions

‎.github/workflows/r2-release.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
tag:
77
required: true
88
type: string
9+
make_latest:
10+
required: true
11+
type: boolean
12+
prerelease:
13+
required: true
14+
type: boolean
915

1016
permissions: {}
1117

@@ -32,7 +38,11 @@ jobs:
3238
AWS_REGION: ${{ vars.CODEX_R2_REGION }}
3339
GH_TOKEN: ${{ github.token }}
3440
RELEASE_TAG: ${{ inputs.tag }}
41+
RELEASE_MAKE_LATEST: ${{ inputs.make_latest }}
42+
RELEASE_PRERELEASE: ${{ inputs.prerelease }}
3543
run: |
3644
set -euo pipefail
3745
python3 .github/scripts/publish_r2_release.py \
38-
--tag "${RELEASE_TAG}"
46+
--tag "${RELEASE_TAG}" \
47+
--make-latest "${RELEASE_MAKE_LATEST}" \
48+
--prerelease "${RELEASE_PRERELEASE}"

‎.github/workflows/rust-release.yml‎

Lines changed: 13 additions & 2 deletions

0 commit comments

Comments
 (0)