fix(ci): use gitea.ref_name and map PYPI_TOKEN env for publish step
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user