Skip to content

Instantly share code, notes, and snippets.

@wotomas
Created August 28, 2017 02:23
Show Gist options
  • Save wotomas/f151162c75bb9cb4f7e69b958e9cf838 to your computer and use it in GitHub Desktop.
Save wotomas/f151162c75bb9cb4f7e69b958e9cf838 to your computer and use it in GitHub Desktop.
Bash Script to release your Android and other artifacts to bintray, when using bintray-release library
clear
echo "You are going to upload your library to bintray?"
select yn in "Yes" "No"; do
case $yn in
Yes )
echo "Please Type your bintray username: "
read username
echo "Please Type your bintray API Key: "
read apiKey
echo "Hello, $username with API key $apiKey uploading to bintray"
echo "==================================== Running Script ================================================="
echo "# #"
echo "# #"
echo " ./gradlew clean build bintrayUpload -PbintrayUser=$username -PbintrayKey=$apiKey -PdryRun=false "
echo "# #"
echo "# #"
echo "====================================================================================================="
eval './gradlew clean build bintrayUpload -PbintrayUser=$username -PbintrayKey=$apiKey -PdryRun=false'
break;;
No )
exit;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment