diff --git a/.github/workflows/publish-agents-arcade.yml b/.github/workflows/publish-agents-arcade.yml index a3035dc..8a9ed8b 100644 --- a/.github/workflows/publish-agents-arcade.yml +++ b/.github/workflows/publish-agents-arcade.yml @@ -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: @@ -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 @@ -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/slack-github-action@v2.0.0 with: webhook: ${{ secrets.PACKAGE_RELEASE_SLACK_WEBHOOK_URL }} diff --git a/pyproject.toml b/pyproject.toml index 137337c..25bb260 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"