Commit de7b1186 authored by Bastien Le Querrec's avatar Bastien Le Querrec

remove deprecated script

parent eb5b11d1
Pipeline #151 passed with stages
in 48 minutes and 34 seconds
#!/usr/bin/env bash
# Upload a build to files.silence.im
# usage: ./scripts/travis-upload.sh <key>
set -eo pipefail
if [ "$#" -lt 1 ]; then
echo "usage: ./scripts/travis-upload <key>"
exit 1
fi
if [ `basename $(pwd)` = "scripts" ]; then
cd ..
fi
if [ ! -f "./build/outputs/apk/Silence-debug.apk" ]; then
echo "APK not found. Did you run `./gradlew build`?"
exit 1
fi
COMMIT=$(git rev-parse --short HEAD)
BRANCH=$(git branch | head -2 | tail -1 | xargs) # HEAD is detached in Travis CI builds
curl --form "fileupload=@./build/outputs/apk/Silence-debug.apk;filename=Silence-debug-$BRANCH-$COMMIT.apk" -H "Authorization: KEY $1" https://files.silence.im/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment