Poll PyPI release readiness [skip ci]

This commit is contained in:
Nick Sweeting 2026-08-28 12:57:54 -07:00
parent dafd376244
commit 2450ce0de7
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ jobs:
token: ${{ secrets.RELEASE_GH_TOKEN }}
- id: version
uses: ArchiveBox/monorepo/.github/actions/prepare-release-version@baf93a10cdadc0c4cebfe610d49261fb549a90ee
uses: ArchiveBox/monorepo/.github/actions/prepare-release-version@afb379c6279fdeeca7aa4408d9589cd969b64ae7
with:
package: archivebox
branch: dev

View File

@ -19,6 +19,12 @@ done
TAG_PREFIX=v
PYPI_PACKAGE=archivebox
pypi_release_json() {
"$CURL_BINARY" -fsSL --retry 30 --retry-all-errors --retry-delay 2 --retry-max-time 60 \
-H 'Cache-Control: no-cache, no-store, max-age=0' -H 'Pragma: no-cache' \
"https://pypi.org/pypi/${PYPI_PACKAGE}/$1/json?cache_bust=$(date +%s)-${RANDOM}"
}
VERSION="$($UV_BINARY run --no-cache --no-project python - <<'PY'
from pathlib import Path
import json
@ -290,6 +296,7 @@ if [[ "$PYPI_STATE" != complete ]]; then
done
[[ "${#PYPI_ARTIFACTS[@]}" -gt 0 ]]
$UV_BINARY publish --no-cache --trusted-publishing always "${PYPI_ARTIFACTS[@]}"
pypi_release_json "$VERSION" >/dev/null
fi
if [[ "$IS_RC" == true ]]; then