Skip to content

Commit 77aa2f5

Browse files
authored
update publish step
1 parent 541b214 commit 77aa2f5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/release-python.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ jobs:
6565

6666
publish:
6767
needs: [build-dist, static-scan]
68+
name: Upload release to PyPI
69+
runs-on: ubuntu-latest
70+
environment: release
71+
permissions:
72+
id-token: write
73+
steps:
74+
- name: Download all the dists
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: all-dist-${{ github.run_id }}
78+
path: dist/
79+
- name: Publish package distributions to PyPI
80+
if: startsWith(inputs.dry_run, 'false')
81+
uses: pypa/gh-action-pypi-publish@release/v1
82+
83+
post-publish:
84+
needs: [publish]
6885
runs-on: ubuntu-latest
6986
environment: release
7087
permissions:
@@ -91,5 +108,4 @@ jobs:
91108
silk_asset_group: ${{ env.SILK_ASSET_GROUP }}
92109
evergreen_project: ${{ env.EVERGREEN_PROJECT }}
93110
token: ${{ github.token }}
94-
repository_url: https://test.pypi.org/legacy/
95111
dry_run: ${{ inputs.dry_run }}

0 commit comments

Comments
 (0)