Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,16 @@ jobs:
run: |
v=${GITHUB_REF_NAME#v}
mkdir sdists
# The wheel step above proves the release is on PyPI, but the per-version
# JSON page behind the CDN can still answer 404 for a short while after
# that, so the lookup retries like the wheel install does.
for n in fora-protocol fora-protocol-sdk; do
url=$(curl -sf "https://pypi.org/pypi/$n/$v/json" | jq -r '.urls[] | select(.packagetype == "sdist") | .url')
curl -sfLo "sdists/$(basename "$url")" "$url"
for i in 1 2 3 4 5 6; do
url=$(curl -sSf "https://pypi.org/pypi/$n/$v/json" | jq -r '.urls[] | select(.packagetype == "sdist") | .url') && break
[ "$i" = 6 ] && { echo "::error::$n $v sdist not visible on PyPI after 3 minutes"; exit 1; }
sleep 30
done
curl -sSfLo "sdists/$(basename "$url")" "$url"
done
scripts/release/smoke-python.sh sdists/*.tar.gz
- name: npm package installs, imports and typechecks
Expand Down
Loading