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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
UV_INDEX_URL: https://test.pypi.org/simple/
|
||||||
|
UV_EXTRA_INDEX_URL: https://pypi.org/simple/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,6 +36,5 @@ jobs:
|
|||||||
uv build
|
uv build
|
||||||
- name: Publish (TestPyPI)
|
- name: Publish (TestPyPI)
|
||||||
run: |
|
run: |
|
||||||
uv pip install twine
|
uv publish --index-url https://test.pypi.org/legacy/ --username __token__ --password ${{ secrets.TESTPYPI_API_TOKEN }}
|
||||||
uv run twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/*
|
|
||||||
|
|
||||||
@@ -19,6 +19,9 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
UV_INDEX_URL: https://pypi.org/simple/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -32,5 +35,5 @@ jobs:
|
|||||||
uv build
|
uv build
|
||||||
- name: Publish (PyPI)
|
- name: Publish (PyPI)
|
||||||
run: |
|
run: |
|
||||||
uv publish
|
uv publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
Reference in New Issue
Block a user