Skip to content

Commit da8c7aa

Browse files
authored
PYTHON-5017 Use a separate PyPI publish step (mongodb#2042)
1 parent fd5a105 commit da8c7aa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release-python.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,23 @@ jobs:
6767

6868
publish:
6969
needs: [build-dist, static-scan]
70+
name: Upload release to PyPI
71+
runs-on: ubuntu-latest
72+
environment: release
73+
permissions:
74+
id-token: write
75+
steps:
76+
- name: Download all the dists
77+
uses: actions/download-artifact@v4
78+
with:
79+
name: all-dist-${{ github.run_id }}
80+
path: dist/
81+
- name: Publish package distributions to PyPI
82+
if: startsWith(inputs.dry_run, 'false')
83+
uses: pypa/gh-action-pypi-publish@release/v1
84+
85+
post-publish:
86+
needs: [publish]
7087
runs-on: ubuntu-latest
7188
environment: release
7289
permissions:

0 commit comments

Comments
 (0)