fix pypi upload url

This commit is contained in:
saces 2026-04-04 11:00:43 +02:00
parent 335e5aef3e
commit 24d3452cbb

View file

@ -138,7 +138,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
repository-url: ${{ github.ref == 'refs/heads/main' && 'https://pypi.org/' || 'https://test.pypi.org/legacy/' }}
repository-url: ${{ github.ref == 'refs/heads/main' && 'https://upload.pypi.org/legacy/' || 'https://test.pypi.org/legacy/' }}
smal-sdist:
@ -218,4 +218,4 @@ jobs:
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: ${{ github.ref == 'refs/heads/main' && 'https://pypi.org/' || 'https://test.pypi.org/legacy/' }}
repository-url: ${{ github.ref == 'refs/heads/main' && 'https://upload.pypi.org/legacy/' || 'https://test.pypi.org/legacy/' }}