From 6fe90497dd4af04bd70878e7ff375f0a5516b3fd Mon Sep 17 00:00:00 2001 From: Patrick Donohoe Date: Thu, 3 Dec 2026 02:25:20 -0500 Subject: [PATCH] Build a registry-compatible wheel and allow release retries --- .../workflows/publish-openai-agents-floo.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-openai-agents-floo.yml b/.github/workflows/publish-openai-agents-floo.yml index 51280ce..e649666 100644 --- a/.github/workflows/publish-openai-agents-floo.yml +++ b/.github/workflows/publish-openai-agents-floo.yml @@ -4,25 +4,38 @@ on: push: tags: ["openai-agents-floo-v*"] + workflow_dispatch: + inputs: + tag: + description: Existing provider release tag + required: true + type: string + permissions: contents: read +env: + RELEASE_TAG: ${{ inputs.tag || github.ref_name }} + jobs: build: + if: github.event_name == 'push' || github.ref == 'refs/heads/main' runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with: + ref: refs/tags/${{ env.RELEASE_TAG }} persist-credentials: false fetch-depth: 0 - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 - name: Verify release tag and build the wheel working-directory: python/openai-agents-floo run: | - git merge-base --is-ancestor "$GITHUB_SHA" origin/main - test "$GITHUB_REF_NAME" = "openai-agents-floo-v$(uv version --short)" - uv build --wheel --out-dir "$RUNNER_TEMP/dist" + git merge-base --is-ancestor HEAD origin/main + test "$RELEASE_TAG" = "openai-agents-floo-v$(uv version --short)" + echo "hatchling==1.27.0" > "$RUNNER_TEMP/build-constraints.txt" + uv build --build-constraints "$RUNNER_TEMP/build-constraints.txt" --wheel --out-dir "$RUNNER_TEMP/dist" uvx twine==6.2.0 check --strict "$RUNNER_TEMP"/dist/*.whl - name: Test the installed wheel working-directory: python/openai-agents-floo