Last active
August 29, 2015 14:26
-
-
Save toshi0383/9a56c6f3c627c4f9ffc7 to your computer and use it in GitHub Desktop.
upload to DeployGate
This file contains hidden or 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
| #!/bin/bash | |
| # usage: ./deploygate.sh path/to.ipa "This is new beta app" | |
| deploygate() { | |
| username=${DEPLOYGATE_USER:?} | |
| apikey=${DEPLOYGATE_API_TOKEN:?} | |
| pathToIpa=${1:?} | |
| message="$2" | |
| command="ipa distribute:deploygate \ | |
| --trace \ | |
| -n \ | |
| -a ${apikey} \ | |
| -u ${username} \ | |
| -f ${pathToIpa} \ | |
| -m \"${message}\"" | |
| echo $command | |
| bash -c "$command" | |
| if [ $? -ne 0 ];then | |
| echo "Deploy failed." | |
| fi | |
| } | |
| deploygate "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment