Skip to content

Commit 4fbf931

Browse files
committed
Use PYPI_HOST instead of full URL so we can re-use it for the cleanup flow
1 parent c6e51e0 commit 4fbf931

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/upload_to_pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ jobs:
7676
# this is needed for the OIDC flow that is used with trusted publishing on PyPI
7777
id-token: write
7878
steps:
79-
- name: Fail if PYPI_URL is not set
80-
if: ${{ vars.PYPI_URL == '' }}
79+
- name: Fail if PYPI_HOST is not set
80+
if: ${{ vars.PYPI_HOST == '' }}
8181
shell: bash
8282
run: |
8383
env_name="${{ github.event_name == 'workflow_dispatch' && inputs.environment || 'test.pypi' }}"
84-
echo "Error: vars.PYPI_URL is not set in the resolved environment (${env_name})"
84+
echo "Error: vars.PYPI_HOST is not set in the resolved environment (${env_name})"
8585
exit 1
8686
8787
- name: Authenticate With AWS
@@ -103,5 +103,5 @@ jobs:
103103
- name: Upload artifacts to PyPI
104104
uses: pypa/gh-action-pypi-publish@release/v1
105105
with:
106-
repository-url: ${{ vars.PYPI_URL }}
106+
repository-url: 'https://${{ vars.PYPI_HOST }}/legacy/'
107107
packages-dir: packages

0 commit comments

Comments
 (0)