chore: update release workflows to include environment variables and streamline publishing steps
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user