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 }}