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 71a76a3 commit aa89b09Copy full SHA for aa89b09
.github/workflows/pypi-package.yaml
@@ -7,6 +7,11 @@ on:
7
description: "Version to use for the Python package (e.g. 0.1.0)"
8
required: true
9
type: string
10
+ test-pypi:
11
+ description: "Publish to Test PyPI instead of the official PyPI"
12
+ required: false
13
+ type: boolean
14
+ default: false
15
release:
16
types: [published]
17
@@ -55,4 +60,4 @@ jobs:
55
60
# Avoid workflow to fail if the version has already been published
56
61
skip-existing: true
57
62
# Upload to Test Pypi for testing
58
- #repository-url: https://test.pypi.org/legacy/
63
+ repository-url: ${{ github.event.inputs.test-pypi == 'true' && 'https://test.pypi.org/legacy/' || '' }}
0 commit comments