diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e471193..32ecd41 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,16 @@ jobs: run: | python -m twine upload dist/* + # Step 5: Upload the package to PyPI + - name: Upload to PyPI + if: matrix.python-version == '3.9' # Publish only once, on Python 3.9 + env: + TWINE_USERNAME: "zjowowen" # PyPI username for token-based authentication + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Use the token stored in GitHub Secrets + PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring # Disable keyring + run: | + python -m twine upload dist/* + # Step 6: Clean up the build artifacts - name: Remove build artifacts if: matrix.python-version == '3.9' # Clean up once after publishing