diff options
| author | Pierre Grandin <grandinp@gmail.com> | 2018-04-22 20:29:34 -0700 |
|---|---|---|
| committer | Pierre Grandin <grandinp@gmail.com> | 2018-04-22 20:29:34 -0700 |
| commit | 426616f40e46f31ae45e2fe124b988de422713db (patch) | |
| tree | cabeef7afc47f51b19948d11f79272b34eaf1bfe | |
| parent | 8fbc9447140adecc721ec7e3e6c6603fa4e5f9b7 (diff) | |
| download | navit-426616f40e46f31ae45e2fe124b988de422713db.tar.gz | |
upload to playstore from the official trunk only
| -rw-r--r-- | ci/publish.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/publish.sh b/ci/publish.sh index 4e59dd213..b3c0a6298 100644 --- a/ci/publish.sh +++ b/ci/publish.sh @@ -1,4 +1,16 @@ #!/bin/sh + +if [ -z $CI ];then + echo "This Script needs to be run by CI" +fi +if [ -z $CIRCLECI ];then + echo "This Script needs to be run on CircleCI" +fi +if [[ "${CIRCLE_PROJECT_USERNAME}" != "navit-gps" || "${CIRCLE_BRANCH}" != "trunk" ]]; then + echo "Only trunk on navit-gps may upload to the Play Store" + exit 0 +fi + set -e ARCH="arm" |
