Skip to content

Commit 38092b7

Browse files
committed
update pypi publishing to trusted publishing
1 parent 8fd2df4 commit 38092b7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ jobs:
190190
name: Build and publish to PyPI
191191
needs: [deploy, conda-build]
192192
runs-on: ubuntu-latest
193+
environment:
194+
name: release
195+
url: https://pypi.org/project/bioimageio.spec/
196+
permissions:
197+
id-token: write # required for pypi publish action
193198
steps:
194199
- name: Check out the repository
195200
uses: actions/checkout@v4
@@ -233,10 +238,8 @@ jobs:
233238
234239
- name: Publish package on PyPI
235240
if: github.ref == 'refs/heads/main' && steps.tag-version.outputs.new_tag
236-
uses: pypa/gh-action-pypi-publish@release/v1.12
241+
uses: pypa/gh-action-pypi-publish@release/v1
237242
with:
238-
user: __token__
239-
password: '${{ secrets.PYPI_TOKEN }}'
240243
packages-dir: dist/
241244

242245
- name: Publish the release notes

0 commit comments

Comments
 (0)