1 Commits
Author SHA1 Message Date
petrbalvin a5c1b519ed fix(ci): use gitea.ref_name and map PYPI_TOKEN env for publish step
Release / release (push) Successful in 1m10s
Test / test (push) Successful in 1m0s
2026-07-26 18:19:11 +02:00
+4 -2
View File
@@ -145,6 +145,8 @@ jobs:
# Publish to PyPI (only on tag push). Requires `PYPI_TOKEN` in repo # Publish to PyPI (only on tag push). Requires `PYPI_TOKEN` in repo
# secrets (project-scoped upload token from https://pypi.org/manage/account/publishing/). # secrets (project-scoped upload token from https://pypi.org/manage/account/publishing/).
- name: Publish to PyPI - 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: | run: |
uv publish --token "$PYPI_TOKEN" uv publish