Skip to content

Commit 66bae69

Browse files
committed
INTPYTHON-406 Allow setting the PyPI repository
1 parent 7bec72b commit 66bae69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/publish/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ inputs:
2626
tag_template:
2727
description: The template for the git tag
2828
default: "${VERSION}"
29+
repository-url:
30+
description: The PyPI repository URL to use
31+
default: https://upload.pypi.org/legacy/
2932
token:
3033
description: The GitHub access token
3134
dry_run:
@@ -85,6 +88,8 @@ runs:
8588
- name: Publish distribution 📦 to PyPI
8689
if: inputs.dry_run == 'false'
8790
uses: pypa/gh-action-pypi-publish@release/v1
91+
with:
92+
repository-url: ${{ inputs.repository_url }}
8893
- name: Do Not Publish distribution 📦 to PyPI on Dry Run
8994
if: inputs.dry_run == 'true'
9095
shell: bash

0 commit comments

Comments
 (0)