Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/publish-openai-agents-floo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down