Skip to content

Commit

Permalink
PYTHON-5017 Use a separate PyPI publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Dec 31, 2024
1 parent 4e4a6d3 commit 40c8de2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ jobs:
ref: ${{ needs.pre-publish.outputs.version }}

publish:
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: inputs.dry_run == 'false'
uses: pypa/gh-action-pypi-publish@release/v1

post-publish:
needs: [build-dist, static-scan]
runs-on: ubuntu-latest
environment: release-python
Expand Down

0 comments on commit 40c8de2

Please sign in to comment.