From bd388458e3d83b107a041da517d63a7f6932f81a Mon Sep 17 00:00:00 2001 From: kuba Date: Sat, 30 Mar 2024 16:29:01 +0100 Subject: [PATCH] change flows to pypi-publish --- .github/workflows/python-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 42814e159..62988c1b3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -11,6 +11,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 @@ -39,11 +42,8 @@ jobs: run: | poetry build - - name: Publish on Pip - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload dist/* + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 build: strategy: