From 9c43519f590173df82643ceb6aedbf0c580e3b3a Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Mon, 28 Sep 2026 19:15:46 -0400 Subject: [PATCH] fix(ci): drop the nonexistent twine --trusted-publishing flag twine has no such option, so the upload aborted with exit 2 before contacting PyPI. Trusted publishing needs no flag: twine resolves the password through keyring, then trusted publishing, and defaults the username to __token__ for PyPI, fetching the audience and minting a token over OIDC on its own. --non-interactive so a trusted-publishing failure errors instead of trying to prompt for a password. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eff5531..fe44367 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -80,4 +80,4 @@ jobs: - name: Publish to PyPI run: | pip install "twine>=5.0" - twine upload --repository pypi --trusted-publishing=always dist/* + twine upload --non-interactive --repository pypi dist/*