From 81c25630ac14a3b3b3ab82ec4fbc242a452eaf4e Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Fri, 20 Sep 2024 16:31:25 +0900 Subject: [PATCH] Updates the package push logic --- .github/workflows/python-package.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9db2b05..328f983 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -29,6 +29,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: @@ -69,9 +74,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: