Created
August 28, 2017 02:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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