Skip to content

Commit 8f0f352

Browse files
committed
Fix wheel build creds
1 parent bcd1c1b commit 8f0f352

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/wheels.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ jobs:
117117
118118
PyPI_Upload:
119119
runs-on: ubuntu-latest
120-
needs: ['windows-test', 'OSX-test', 'manylinux-test']
120+
environment: release
121+
needs: [ 'windows-test', 'OSX-test', 'manylinux-test' ]
122+
permissions:
123+
id-token: write
121124
steps:
122125
- name: Download all
123126
uses: actions/download-artifact@v2
@@ -127,7 +130,7 @@ jobs:
127130
cp */*.{whl,gz} dist/.
128131
- name: Publish distribution to Test PyPI
129132
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
130-
uses: pypa/gh-action-pypi-publish@master
133+
uses: pypa/gh-action-pypi-publish@release/v1.8
131134
with:
132135
repository_url: https://test.pypi.org/legacy/
133136
- name: Publish distribution to PRODUCTION PyPI

0 commit comments

Comments
 (0)