Skip to content

Commit 4aa0d79

Browse files
committed
fixing ubild
1 parent 180c104 commit 4aa0d79

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

.github/workflows/artifacts.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -307,34 +307,6 @@ jobs:
307307
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
308308
env:
309309
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
310-
- name: Wait for crate availability
311-
run: |
312-
set -euo pipefail
313-
VERSION=$(python3 - <<'PY'
314-
import tomllib
315-
from pathlib import Path
316-
with open(Path("Cargo.toml"), "rb") as fh:
317-
data = tomllib.load(fh)
318-
print(data["workspace"]["package"]["version"])
319-
PY
320-
)
321-
for crate in ontoenv ontoenv-cli; do
322-
echo "Waiting for ${crate} ${VERSION} to appear on crates.io..."
323-
success=0
324-
for attempt in {1..10}; do
325-
if curl --silent --fail "https://crates.io/api/v1/crates/${crate}/${VERSION}" >/dev/null; then
326-
echo "${crate} ${VERSION} is available."
327-
success=1
328-
break
329-
fi
330-
echo "Attempt ${attempt}/10: ${crate} ${VERSION} not visible yet; retrying in 30s..."
331-
sleep 30
332-
done
333-
if [ "${success}" -ne 1 ]; then
334-
echo "Timed out waiting for ${crate} ${VERSION} to propagate to crates.io."
335-
exit 1
336-
fi
337-
done
338310
full_archive:
339311
if: github.event_name == 'release'
340312
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)