We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de3a0c commit ce4d2e6Copy full SHA for ce4d2e6
1 file changed
.github/workflows/publish.yml
@@ -3,6 +3,13 @@ name: PyPI Publish
3
on:
4
release:
5
types: [created]
6
+ workflow_dispatch:
7
+ inputs:
8
+ test_release:
9
+ description: If true, publish to test.pypi.org
10
+ required: true
11
+ default: true
12
+ type: boolean
13
14
jobs:
15
publish:
@@ -17,4 +24,5 @@ jobs:
17
24
- run: uv build
18
25
- run: uv publish
19
26
env:
20
- UV_PUBLISH_TOKEN: ${{secrets.POETRY_PYPI_TOKEN_PYPI}}
27
+ UV_PUBLISH_TOKEN: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.test_release && secrets.TEST_PYPI_API_TOKEN || secrets.POETRY_PYPI_TOKEN_PYPI }}
28
+ UV_PUBLISH_URL: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.test_release && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }}
0 commit comments