File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ jobs:
109
109
name : Publish wheels to TestPyPI
110
110
needs : [build_wheels, build_sdist]
111
111
runs-on : ubuntu-latest
112
+ environment :
113
+ name : testpypi
114
+ url : https://test.pypi.org/p/shap
115
+ permissions :
116
+ id-token : write
112
117
steps :
113
118
- uses : actions/download-artifact@v4
114
119
with :
@@ -125,7 +130,6 @@ jobs:
125
130
uses : pypa/gh-action-pypi-publish@release/v1
126
131
with :
127
132
verbose : true
128
- password : ${{ secrets.TEST_PYPI_TOKEN }}
129
133
repository-url : https://test.pypi.org/legacy/
130
134
131
135
publish_pypi :
@@ -134,6 +138,11 @@ jobs:
134
138
runs-on : ubuntu-latest
135
139
# Only publish tagged releases to PyPI
136
140
if : startsWith(github.ref, 'refs/tags')
141
+ environment :
142
+ name : pypi
143
+ url : https://pypi.org/p/shap
144
+ permissions :
145
+ id-token : write
137
146
steps :
138
147
- uses : actions/download-artifact@v4
139
148
with :
@@ -148,5 +157,3 @@ jobs:
148
157
149
158
- name : Publish package to PyPI
150
159
uses : pypa/gh-action-pypi-publish@release/v1
151
- with :
152
- password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments