stash/scripts/upload-pull-request.sh

16 lines
417 B
Bash
Raw Normal View History

#!/bin/sh
# assumes cross-compile.sh has already been run successfully
2019-11-28 15:03:32 +00:00
uploadFile()
{
FILE=$1
BASENAME="$(basename "${FILE}")"
# abort if it takes more than two minutes to upload
uploadedTo=`curl -m 120 --upload-file $FILE "https://transfer.sh/$BASENAME"`
2019-11-28 15:03:32 +00:00
echo "$BASENAME uploaded to url: $uploadedTo"
}
2019-11-28 15:03:32 +00:00
uploadFile "dist/stash-osx"
uploadFile "dist/stash-win.exe"
uploadFile "dist/stash-linux"