From a269d0c604358f851e207c755865ad004fda35f6 Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Sat, 5 Oct 2024 00:20:41 +0900 Subject: [PATCH] Reverts the settings (#5) --- .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 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: