Compare commits

...

3 Commits

Author SHA1 Message Date
Baptiste Augrain
10a0cb4b30 fix: remove infinity loop in the release script (#904) 2021-11-06 12:58:53 +01:00
Baptiste Augrain
0469329683 fix: fixing release script (#903) 2021-11-06 12:26:36 +01:00
Baptiste Augrain
6acd2fbfe1 feat: break force the uploads (#902) 2021-11-06 12:03:44 +01:00

View File

@@ -16,11 +16,32 @@ fi
cd artifacts
set +e
for FILE in *
do
if [[ -f "${FILE}" ]] && [[ "${FILE}" != *.sha1 ]] && [[ "${FILE}" != *.sha256 ]]; then
echo "Uploading '${FILE}'"
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
if [[ $? != 0 ]]; then
for (( i=0; i<10; i++ ))
do
sleep $(( 15 * (i + 1)))
echo "RE-Uploading '${FILE}'"
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" --clobber
if [[ $? == 0 ]]; then
break
fi
done
if [[ $? != 0 ]]; then
echo "'${FILE}' hasn't been uploaded!"
exit 1
fi
fi
fi
done