Skip to content

Commit 53a1ecb

Browse files
committed
Migrate to Trusted Publishing
1 parent 7f2ba54 commit 53a1ecb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ jobs:
168168
name: upload wheels to PyPI
169169
runs-on: ubuntu-latest
170170
needs: [build_wheels_linux, build_wheels_macos]
171+
environment:
172+
name: pypi
173+
url: https://pypi.org/p/pymaat
174+
permissions:
175+
id-token: write
171176
strategy:
172177
matrix:
173178
# The os names must match the ones in the build_wheels job
@@ -182,8 +187,5 @@ jobs:
182187
path: ${{ matrix.os }}-wheels/
183188

184189
- name: "Upload wheels"
185-
uses: pypa/gh-action-pypi-publish@v1.13.0
186-
with:
187-
user: __token__
188-
password: ${{ secrets.PYPI_API_TOKEN }}
189-
packages_dir: ${{ matrix.os }}-wheels/
190+
uses: pypa/gh-action-pypi-publish@release/v1
191+
packages-dir: ${{ matrix.os }}-wheels/

0 commit comments

Comments
 (0)