diff --git a/.github/actions/publish-pypi/action.yml b/.github/actions/publish-pypi/action.yml index 8fdf6de7..a33290a7 100644 --- a/.github/actions/publish-pypi/action.yml +++ b/.github/actions/publish-pypi/action.yml @@ -1,10 +1,9 @@ -# requires github environment with PYPI_REPOSITORY_URL defined name: Publish PyPI inputs: - deploy-to: + pypi-repository-url: description: The PyPI index to publish to, test or prod - default: "prod" + required: true build-command: description: The command to build distributable artifacts default: "hatch build" @@ -26,4 +25,4 @@ runs: - name: Publish artifacts uses: pypa/gh-action-pypi-publish@release/v1 with: - url: ${{ vars.PYPI_REPOSITORY_URL }} + url: ${{ inputs.pypi-repository-url }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b37286f..ca89bacb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,4 +58,4 @@ jobs: - name: Publish to PyPI uses: ./.github/actions/publish-pypi with: - deploy-to: ${{ inputs.deploy-to }} + pypi-repository-url: ${{ vars.PYPI_REPOSITORY_URL }}