-
Notifications
You must be signed in to change notification settings - Fork 42
/
uploadBintray.sh
executable file
·25 lines (23 loc) · 1.35 KB
/
uploadBintray.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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