mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Poll PyPI release readiness [skip ci]
This commit is contained in:
parent
dafd376244
commit
2450ce0de7
2
.github/workflows/release-candidate.yml
vendored
2
.github/workflows/release-candidate.yml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user