ci: use pypi trusted publishing in release state

This commit is contained in:
Nick Sweeting 2026-06-14 10:47:44 -07:00
parent a25a33eba1
commit cb5c822eb4
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ jobs:
release-state:
if: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'release:')
runs-on: ubuntu-latest
environment: pypi
steps:
- uses: actions/checkout@v4
with:

View File

@ -409,7 +409,7 @@ publish_artifacts() {
if [[ -n "${pypi_token}" ]]; then
UV_PUBLISH_TOKEN="${pypi_token}" uv publish --username=__token__ "${artifacts[@]}"
else
uv publish --username=__token__ "${artifacts[@]}"
uv publish --trusted-publishing always "${artifacts[@]}"
fi
fi