Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 6 additions & 23 deletions .github/workflows/publish-agents-arcade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Publish openai-agents-arcade

on:
workflow_dispatch:
inputs:
version:
description: "Version to release (leave empty to use version from pyproject.toml)"
required: false

jobs:
test-and-publish:
Expand All @@ -20,9 +16,6 @@ jobs:
with:
fetch-depth: 0

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install uv
uses: astral-sh/setup-uv@v5

Expand All @@ -37,30 +30,20 @@ jobs:
make sync
make lint

- name: Set version if provided
if: inputs.version != ''
working-directory: .
- name: Set version
run: |
uv bump ${{ inputs.version }}
VERSION=$(grep -m1 '^version' pyproject.toml | cut -d\" -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV

- name: Publish to PyPI
id: publish
working-directory: .
run: |
uv build
export PYPI_TOKEN=${{ secrets.PYPI_TOKEN }}
# Extract version from pyproject.toml using uv and save it
VERSION=$(uv version --short)
echo "VERSION=$VERSION" >> $GITHUB_ENV
if uv publish --skip-existing 2>&1 | grep -q "File exists. Skipping"; then
echo "Version already exists on PyPI. Skipping publish."
echo "skip_publish=true" >> $GITHUB_OUTPUT
else
echo "skip_publish=false" >> $GITHUB_OUTPUT
fi
uv build | tee build.log
uv publish --token ${{ secrets.PYPI_TOKEN }}

- name: Send status to Slack
if: steps.publish.outputs.skip_publish != 'true'
if: always()
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.PACKAGE_RELEASE_SLACK_WEBHOOK_URL }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "agents-arcade"
version = "0.0.3"
version = "0.0.4"
description = "Arcade Integration for OpenAI Agents"
readme = "README.md"
requires-python = ">=3.9"
Expand Down