mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:00:17 +00:00
add release assets workflow
This commit is contained in:
20
hack/ci/upload-release-assets.sh
Executable file
20
hack/ci/upload-release-assets.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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 ./*
|
||||
Reference in New Issue
Block a user