diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index f8663b1..eda1c00 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,6 +35,11 @@ jobs: build: runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/k2hr3client + permissions: + id-token: write strategy: fail-fast: false matrix: @@ -75,9 +80,7 @@ jobs: run: python -m build - name: Publish distribution to PyPI if: ${{ matrix.python-version == '3.11' && startsWith(github.ref, 'refs/tags') }} - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1 # # Local variables: