Fix PyPI publish by inlining steps in release workflow

The pypa/gh-action-pypi-publish action does not support being called
from nested composite actions due to GitHub Actions context variable
limitations (github.action_repository not propagating correctly).

Inline the publish steps directly in release.yml to avoid the issue.
See: https://github.com/pypa/gh-action-pypi-publish/issues/338

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
main
David Sarno 2026-01-14 16:09:27 -08:00
parent 218f5f556d
commit 12fa0b7707
1 changed files with 18 additions and 2 deletions

View File

@ -170,5 +170,21 @@ jobs:
ref: ${{ needs.bump.outputs.tag }}
fetch-depth: 0
- name: Build and publish
uses: ./.github/actions/publish-pypi
# Inlined from .github/actions/publish-pypi to avoid nested composite action issue
# with pypa/gh-action-pypi-publish (see https://github.com/pypa/gh-action-pypi-publish/issues/338)
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
enable-cache: true
cache-dependency-glob: "Server/uv.lock"
- name: Build a binary wheel and a source tarball
shell: bash
run: uv build
working-directory: ./Server
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: Server/dist/