Skip to content

Commit 64a0fe1

Browse files
authored
INTPYTHON-406 Allow setting the PyPI repository (#61)
1 parent 7bec72b commit 64a0fe1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python/publish/action.yml

+7-1
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:
@@ -84,7 +87,10 @@ runs:
8487
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
8588
- name: Publish distribution 📦 to PyPI
8689
if: inputs.dry_run == 'false'
87-
uses: pypa/gh-action-pypi-publish@release/v1
90+
# Pinned due to https://github.com/pypa/gh-action-pypi-publish/issues/290
91+
uses: pypa/[email protected]
92+
with:
93+
repository-url: ${{ inputs.repository_url }}
8894
- name: Do Not Publish distribution 📦 to PyPI on Dry Run
8995
if: inputs.dry_run == 'true'
9096
shell: bash

0 commit comments

Comments
 (0)