Skip to content

Commit d171dd6

Browse files
committed
switching to trusted publishing
1 parent 07b00f9 commit d171dd6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build_wheels.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,23 @@ jobs:
199199
needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows]
200200
runs-on: ubuntu-latest
201201
if: startsWith(github.ref, 'refs/tags/quaddtype-v')
202+
203+
environment:
204+
name: quadtype_release
205+
url: https://pypi.org/p/numpy-quaddtype
206+
207+
permissions:
208+
id-token: write # IMPORTANT: mandatory for trusted publishing
209+
202210
steps:
203211
- name: Download all workflow run artifacts
204212
uses: actions/download-artifact@v4
205213
with:
206214
path: dist
215+
207216
- name: Publish to PyPI
208-
uses: pypa/gh-action-pypi-publish@v1.9.0
217+
uses: pypa/gh-action-pypi-publish@release/v1
209218
with:
210-
user: __token__
211-
password: ${{ secrets.PYPI_API_TOKEN }}
212219
packages-dir: dist/*
213220

214221
create_release:

0 commit comments

Comments
 (0)