You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,10 +37,25 @@ jobs:
37
37
with:
38
38
name: release-dists
39
39
path: dist/
40
+
40
41
pypi-publish:
41
42
runs-on: ubuntu-latest
42
43
needs:
43
44
- release-build
45
+
permissions:
46
+
# IMPORTANT: this permission is mandatory for trusted publishing
47
+
id-token: write
48
+
49
+
# Dedicated environments with protections for publishing are strongly recommended.
50
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+
environment:
52
+
name: pypi
53
+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+
# url: https://pypi.org/p/YOURPROJECT
55
+
#
56
+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+
# ALTERNATIVE: exactly, uncomment the following line instead:
0 commit comments