Skip to content

Commit

Permalink
[#514] - make it easier to figure out if debug or release
Browse files Browse the repository at this point in the history
  • Loading branch information
timkim committed Oct 31, 2017
1 parent 42612ca commit 5172677
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions resources/circle-ci/android/aws-upload.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ if [ "$CIRCLECI" != true ]; then
exit
fi

if [ "$(git rev-parse HEAD)" != "$(git rev-parse $(git describe --abbrev=0 --tags))" ]; then
APKLOCATION=platforms/android/build/outputs/apk/android-debug.apk
debug="platforms/android/build/outputs/apk/android-debug.apk"
release="platforms/android/build/outputs/apk/android-release.apk"

if [ -e "$debug" ]; then
APKLOCATION="$debug"
elif [ -e "$release" ]; then
APKLOCATION="$release"
else
APKLOCATION=platforms/android/build/outputs/apk/android-release.apk
echo 'Error: Unable to find android apk file'
exit
fi

aws configure set aws_access_key_id $AWSACCESSKEY
Expand Down

0 comments on commit 5172677

Please sign in to comment.