Skip to content

Instantly share code, notes, and snippets.

@toshi0383
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save toshi0383/9a56c6f3c627c4f9ffc7 to your computer and use it in GitHub Desktop.

Select an option

Save toshi0383/9a56c6f3c627c4f9ffc7 to your computer and use it in GitHub Desktop.
upload to DeployGate
#!/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