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 680039f commit 2c5e0e5
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
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 2c5e0e5

Please sign in to comment.