From 860503e4823b5aded6a0604ea9df564278aadf57 Mon Sep 17 00:00:00 2001 From: "Iamsamang, Jirawat" Date: Fri, 26 Apr 2024 00:24:05 +0200 Subject: [PATCH] fix: pypi version --- .github/workflows/wheel.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index fac56cd..a966db6 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -73,10 +73,15 @@ jobs: with: path: wheelhouse/*.whl - upload_all: + pypi-publish: name: Upload if release needs: [build_wheels, build_sdist] runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/PyScaffolder + permissions: + id-token: write if: github.event.inputs.upload != false steps: @@ -87,8 +92,9 @@ jobs: name: artifact path: dist - - uses: pypa/gh-action-pypi-publish@v1 + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + #user: __token__ + #password: ${{ secrets.PYPI_API_TOKEN }} skip-existing: true \ No newline at end of file