File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 58
58
59
59
- name : Prepare env
60
60
run : |
61
- python -m pip install -r tests/requirements.txt build twine
61
+ python -m pip install -r tests/requirements.txt build twine!=5.1.0
62
62
63
63
- name : Python Packaging tests
64
64
run : pytest tests/extra_python_package/
@@ -91,23 +91,27 @@ jobs:
91
91
runs-on : ubuntu-latest
92
92
if : github.event_name == 'release' && github.event.action == 'published'
93
93
needs : [packaging]
94
+ environment : pypi
95
+ permissions :
96
+ id-token : write
97
+ attestations : write
98
+ contents : read
94
99
95
100
steps :
96
- - uses : actions/setup-python@v5
97
- with :
98
- python-version : " 3.x"
99
-
100
101
# Downloads all to directories matching the artifact names
101
102
- uses : actions/download-artifact@v4
102
103
104
+ - name : Generate artifact attestation for sdist and wheel
105
+ uses : actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
106
+ with :
107
+ subject-path : " */pybind11*"
108
+
103
109
- name : Publish standard package
104
110
uses : pypa/gh-action-pypi-publish@release/v1
105
111
with :
106
- password : ${{ secrets.pypi_password }}
107
112
packages-dir : standard/
108
113
109
114
- name : Publish global package
110
115
uses : pypa/gh-action-pypi-publish@release/v1
111
116
with :
112
- password : ${{ secrets.pypi_password_global }}
113
117
packages-dir : global/
You can’t perform that action at this time.
0 commit comments