From 6bf4a507e979bc46c0a4186ec3a80a6ce8e68bb7 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Sun, 28 Dec 2025 14:47:08 -0800 Subject: [PATCH] fix more --- .github/workflows/publish-pypi.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index ad01278c..a32760b9 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -23,27 +23,26 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.12" + python-version: "3.13" - - name: Install uv - uses: astral-sh/setup-uv@v4 - with: - enable-cache: true + - name: Install build tools + run: pip install build twine - name: Build package - run: uv build + run: python -m build - name: Debug token (REMOVE THIS) env: - UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | - if [ -z "$UV_PUBLISH_TOKEN" ]; then + if [ -z "$TWINE_PASSWORD" ]; then echo "Token is empty!" else - echo "Token is set (length: ${#UV_PUBLISH_TOKEN})" + echo "Token is set (length: ${#TWINE_PASSWORD})" fi - name: Publish to PyPI env: - UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - run: uv publish + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: twine upload dist/*