Fixed deploy script

canary
WolverinDEV 2020-04-09 17:58:02 +02:00
parent 4df4b8def6
commit eb0b312cc8
2 changed files with 6 additions and 6 deletions

View File

@ -25,12 +25,12 @@ jobs:
deploy:
- provider: script
script: "./scripts/travis_deploy_dev_server.sh || travis_terminate 1;"
skip_cleanup: true
script: "bash scripts/travis_deploy_dev_server.sh"
cleanup: false
on:
branch: develop
- provider: script
skip_cleanup: true
script: "./scripts/travis_deploy_github.sh || travis_terminate 1;"
cleanup: false
script: "bash scripts/travis_deploy_github.sh"
on:
branch: master

View File

@ -14,13 +14,13 @@ chmod 600 /tmp/sftp_key
}
cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; }
file=$(find . -maxdepth 1 -name "*.zip" -print)
file=$(find "$PACKAGES_DIRECTORY" -maxdepth 1 -name "*.zip" -print)
[[ $(echo "$file" | wc -l) -ne 1 ]] && {
echo "Invalid release file count (Expected 1 but got $(echo "$file" | wc -l))"
exit 1
}
[[ ! -e "$file" ]] && {
echo "File does not exists"
echo "File ($file) does not exists"
exit 1
}
#TeaSpeak-Travis-Web