fix(ci): use gitea.ref_name and map PYPI_TOKEN env for publish step

This commit is contained in:
2026-07-26 18:19:11 +02:00
parent 3b8ed31f67
commit 10283e9bbc
+4 -2
View File
@@ -145,6 +145,8 @@ jobs:
# Publish to PyPI (only on tag push). Requires `PYPI_TOKEN` in repo
# secrets (project-scoped upload token from https://pypi.org/manage/account/publishing/).
- name: Publish to PyPI
if: startsWith(env.GITEA_REF_NAME, 'v')
if: ${{ startsWith(gitea.ref_name, 'v') }}
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
uv publish --token "$PYPI_TOKEN"
uv publish