PYTHON-5017 Use a separate PyPI publish step (#2042)

This commit is contained in:
Steven Silvester 2025-01-06 14:25:36 -06:00 committed by GitHub
parent fd5a10599b
commit da8c7aa4e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,23 @@ jobs:
publish:
needs: [build-dist, static-scan]
name: Upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: all-dist-${{ github.run_id }}
path: dist/
- name: Publish package distributions to PyPI
if: startsWith(inputs.dry_run, 'false')
uses: pypa/gh-action-pypi-publish@release/v1
post-publish:
needs: [publish]
runs-on: ubuntu-latest
environment: release
permissions: