mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:20:17 +00:00
21 lines
229 B
Bash
21 lines
229 B
Bash
|
|
#!/bin/sh
|
||
|
|
set -e
|
||
|
|
|
||
|
|
retry() {
|
||
|
|
for i in $(seq 1 10); do
|
||
|
|
if "${@}"; then
|
||
|
|
return 0
|
||
|
|
else
|
||
|
|
sleep "${i}"
|
||
|
|
fi
|
||
|
|
done
|
||
|
|
"${@}"
|
||
|
|
}
|
||
|
|
|
||
|
|
TAG="${1}"
|
||
|
|
shift
|
||
|
|
|
||
|
|
cd target/assemble
|
||
|
|
|
||
|
|
retry gh release upload "${TAG}" --clobber ./*
|