Skip to content

Commit

Permalink
fix pypi-publish upload URL (#11798)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Oct 18, 2024
1 parent 1db74fb commit 5050fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
EVENT_CONTEXT: ${{ toJson(github.event) }}

- run: |
echo "PYPI_URL=https://pypi.org/legacy/" >> $GITHUB_ENV
echo "PYPI_URL=https://upload.pypi.org/legacy/" >> $GITHUB_ENV
if: github.event_name == 'workflow_run' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi')
- run: |
echo "PYPI_URL=https://test.pypi.org/legacy/" >> $GITHUB_ENV
Expand All @@ -60,4 +60,4 @@ jobs:
# because there's nothing that would prevent a malicious PyPI from
# serving a signed TestPyPI asset in place of a release intended for
# PyPI.
attestations: ${{ env.PYPI_URL == 'https://pypi.org/legacy/' }}
attestations: ${{ env.PYPI_URL == 'https://upload.pypi.org/legacy/' }}

0 comments on commit 5050fe5

Please sign in to comment.