Skip to content

Commit 36972cf

Browse files
authored
fix(ci): drop the nonexistent twine --trusted-publishing flag (#539)
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.
1 parent d950f68 commit 36972cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ jobs:
8080
- name: Publish to PyPI
8181
run: |
8282
pip install "twine>=5.0"
83-
twine upload --repository pypi --trusted-publishing=always dist/*
83+
twine upload --non-interactive --repository pypi dist/*

0 commit comments

Comments
 (0)