File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,10 @@ jobs:
216
216
217
217
PyPI_Upload :
218
218
runs-on : ubuntu-latest
219
+ environment : release
219
220
needs : ['windows-test', 'OSX-test', 'manylinux-test']
221
+ permissions :
222
+ id-token : write
220
223
steps :
221
224
- name : Download all
222
225
uses : actions/download-artifact@v2
@@ -226,12 +229,9 @@ jobs:
226
229
cp */*.{whl,gz} dist/.
227
230
- name : Publish distribution to Test PyPI
228
231
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && !contains(github.event.ref, 'C_')
229
- uses : pypa/gh-action-pypi-publish@master
232
+ uses : pypa/gh-action-pypi-publish@release/v1
230
233
with :
231
- password : ${{ secrets.test_pypi_password }}
232
234
repository_url : https://test.pypi.org/legacy/
233
235
- name : Publish distribution to PRODUCTION PyPI
234
236
if : github.event_name == 'release' && !startsWith(github.event.release.tag_name, 'C_')
235
- uses : pypa/gh-action-pypi-publish@master
236
- with :
237
- password : ${{ secrets.pypi_password }}
237
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments