CI: Retry curl uploads to transfer.sh on failures

This commit is contained in:
Philipp Wolfer
2019-02-18 14:35:14 +01:00
parent 8bb2547d81
commit 522abac74f

View File

@@ -45,7 +45,7 @@ hdiutil create -volname "MusicBrainz Picard $VERSION" -srcfolder 'MusicBrainz Pi
[ "$codesign" = '1' ] && codesign --keychain picard.keychain --verify --verbose --sign 'Developer ID Application: MetaBrainz Foundation Inc.' "$dmg"
if [ -n "$UPLOAD_OSX" ]
then
curl -v --upload-file "$dmg" https://transfer.sh/
curl -v --retry 6 --retry-delay 10 --upload-file "$dmg" https://transfer.sh/
# Required for a newline between the outputs
echo -e "\n"
md5 -r "$dmg"