Skip to content

INTPYTHON-406 Allow setting the PyPI repository #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion python/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ inputs:
tag_template:
description: The template for the git tag
default: "${VERSION}"
repository-url:
description: The PyPI repository URL to use
default: https://upload.pypi.org/legacy/
token:
description: The GitHub access token
dry_run:
Expand Down Expand Up @@ -84,7 +87,10 @@ runs:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
- name: Publish distribution 📦 to PyPI
if: inputs.dry_run == 'false'
uses: pypa/gh-action-pypi-publish@release/v1
# Pinned due to https://github.com/pypa/gh-action-pypi-publish/issues/290
uses: pypa/[email protected]
with:
repository-url: ${{ inputs.repository_url }}
- name: Do Not Publish distribution 📦 to PyPI on Dry Run
if: inputs.dry_run == 'true'
shell: bash
Expand Down
Loading