chore: update release workflows to include environment variables and streamline publishing steps
Some checks failed
CI / test (3.13) (push) Successful in 43s
Publish to TestPyPI / build-publish (release) Failing after 21s
Publish to PyPI / build-publish (release) Has been skipped

This commit is contained in:
Alexander Kalinovsky
2025-08-26 20:46:23 +03:00
parent 41bbc0bf58
commit 86a8bdbc02
2 changed files with 9 additions and 3 deletions

View File

@@ -19,6 +19,10 @@ jobs:
runs-on: ubuntu-latest
env:
UV_INDEX_URL: https://test.pypi.org/simple/
UV_EXTRA_INDEX_URL: https://pypi.org/simple/
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -32,6 +36,5 @@ jobs:
uv build
- name: Publish (TestPyPI)
run: |
uv pip install twine
uv run twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/*
uv publish --index-url https://test.pypi.org/legacy/ --username __token__ --password ${{ secrets.TESTPYPI_API_TOKEN }}