Skip to content

Commit 90dff87

Browse files
author
Daniele Briggi
committed
feat(workflow): select to publish on test-pypi
1 parent 71a76a3 commit 90dff87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pypi-package.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
description: "Version to use for the Python package (e.g. 0.1.0)"
88
required: true
99
type: string
10+
test-pypi:
11+
description: "Publish to Test PyPI"
12+
required: false
13+
type: boolean
14+
default: false
1015
release:
1116
types: [published]
1217

@@ -55,4 +60,4 @@ jobs:
5560
# Avoid workflow to fail if the version has already been published
5661
skip-existing: true
5762
# 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

Comments
 (0)