From 0566bf6616cd561d24a64225523f005f7c3c90ee Mon Sep 17 00:00:00 2001 From: Andras Lasso Date: Mon, 19 Aug 2024 02:11:50 +0200 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 969218c..f2d8dd1 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,10 +8,16 @@ on: types: [published] jobs: - deploy: + pypi-publish: runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/slicerio + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: - uses: actions/checkout@v4 - name: Set up Python @@ -26,6 +32,3 @@ jobs: run: python -m build - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}