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
parent
218f5f556d
commit
12fa0b7707
|
|
@ -170,5 +170,21 @@ jobs:
|
||||||
ref: ${{ needs.bump.outputs.tag }}
|
ref: ${{ needs.bump.outputs.tag }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Build and publish
|
# Inlined from .github/actions/publish-pypi to avoid nested composite action issue
|
||||||
uses: ./.github/actions/publish-pypi
|
# 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/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue