stash/scripts/upload-pull-request.sh

14 lines
353 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}")"
2019-11-28 15:03:32 +00:00
uploadedTo=`curl --upload-file $FILE "https://transfer.sh/$BASENAME"`
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"