mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
ci: use pypi trusted publishing in release state
This commit is contained in:
parent
a25a33eba1
commit
cb5c822eb4
1
.github/workflows/release-runner.yml
vendored
1
.github/workflows/release-runner.yml
vendored
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user