mirror of
https://github.com/openai/codex.git
synced 2026-10-25 18:28:38 +00:00
smoke-test r2 publisher
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
name: publish-r2-release
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
tag:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
environment: codex-r2-publisher
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Check disk before publication
|
||||
run: df -h
|
||||
|
||||
- name: Publish release assets and metadata to R2
|
||||
# R2 exposes an S3-compatible API, so the AWS CLI reads AWS-named variables.
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.CODEX_R2_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.CODEX_R2_SECRET_ACCESS_KEY }}
|
||||
AWS_ENDPOINT_URL: ${{ vars.CODEX_R2_ENDPOINT_URL }}
|
||||
AWS_REGION: ${{ vars.CODEX_R2_REGION }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_TAG: ${{ inputs.tag }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 .github/scripts/publish_r2_release.py \
|
||||
--tag "${RELEASE_TAG}"
|
||||
|
||||
- name: Check disk after publication
|
||||
if: always()
|
||||
run: df -h
|
||||
@@ -0,0 +1,16 @@
|
||||
name: r2-smoke
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- zsol/r2-smoke-20260714
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/r2-release.yml
|
||||
with:
|
||||
tag: rust-v0.145.0-alpha.10
|
||||
Reference in New Issue
Block a user