From 254cce5a2d2afbd7a0f3f7c4228f52cc11bc3587 Mon Sep 17 00:00:00 2001 From: fcakyon Date: Mon, 16 Dec 2024 21:58:23 +0300 Subject: [PATCH] Update GitHub Actions workflow to use PyPI API token for publishing --- .github/workflows/publish_pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 7000cf3..77e781e 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -20,8 +20,8 @@ jobs: pip install setuptools wheel twine - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload --verbose --skip-existing dist/*