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
+30-30Lines changed: 30 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -38,48 +38,48 @@ jobs:
38
38
name: release-dists
39
39
path: dist/
40
40
41
+
# testpypi-publish:
42
+
# needs: release-build
43
+
# runs-on: ubuntu-latest
44
+
# environment: testpypi
45
+
# permissions:
46
+
# id-token: write
47
+
# steps:
48
+
# - uses: actions/download-artifact@v4
49
+
# with:
50
+
# name: release-dists
51
+
# path: dist/
52
+
# - uses: pypa/gh-action-pypi-publish@release/v1
53
+
# with:
54
+
# repository-url: https://test.pypi.org/legacy/
55
+
41
56
publish:
42
-
needs: release-build
43
57
runs-on: ubuntu-latest
44
-
environment: testpypi
58
+
needs:
59
+
- release-build
45
60
permissions:
46
-
id-token: write
47
-
steps:
48
-
- uses: actions/download-artifact@v4
49
-
with:
50
-
name: release-dists
51
-
path: dist/
52
-
- uses: pypa/gh-action-pypi-publish@release/v1
53
-
with:
54
-
repository-url: https://test.pypi.org/legacy/
55
-
56
-
# pypi-publish:
57
-
# runs-on: ubuntu-latest
58
-
# needs:
59
-
# - release-build
60
-
# permissions:
61
61
# IMPORTANT: this permission is mandatory for trusted publishing
62
-
# id-token: write
62
+
id-token: write
63
63
64
64
# Dedicated environments with protections for publishing are strongly recommended.
65
65
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
66
-
# environment:
67
-
# name: pypi
66
+
environment:
67
+
name: pypi
68
68
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
69
69
# url: https://pypi.org/p/YOURPROJECT
70
70
#
71
71
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
72
72
# ALTERNATIVE: exactly, uncomment the following line instead:
0 commit comments