From 982b578c156b8ecffbc1c671887128f3fa71c449 Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Tue, 19 May 2026 16:06:53 -0500 Subject: [PATCH] fixed token name errror --- .gitea/workflows/publish.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 07ab7ca..47b8de3 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -36,21 +36,11 @@ jobs: - name: Build Wheel and Source Distribution run: python -m build . - - name: Verify Secret Presence - env: - MY_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - run: | - if [ -z "$MY_TOKEN" ]; then - echo "❌ ERROR: The Gitea runner is receiving an empty string for PYPI_API_TOKEN!" - exit 1 - else - echo "✅ SUCCESS: Secret is accessible to this repository." - fi - name: Publish Package to PyPI env: TWINE_USERNAME: __token__ # Inherits your clean Organization level secret - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: twine upload --skip-existing dist/* - name: Build Gitea Release with Assets