Fixed deploy script
parent
4df4b8def6
commit
eb0b312cc8
|
@ -25,12 +25,12 @@ jobs:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
script: "./scripts/travis_deploy_dev_server.sh || travis_terminate 1;"
|
script: "bash scripts/travis_deploy_dev_server.sh"
|
||||||
skip_cleanup: true
|
cleanup: false
|
||||||
on:
|
on:
|
||||||
branch: develop
|
branch: develop
|
||||||
- provider: script
|
- provider: script
|
||||||
skip_cleanup: true
|
cleanup: false
|
||||||
script: "./scripts/travis_deploy_github.sh || travis_terminate 1;"
|
script: "bash scripts/travis_deploy_github.sh"
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
|
@ -14,13 +14,13 @@ chmod 600 /tmp/sftp_key
|
||||||
}
|
}
|
||||||
cd "$(dirname "$0")/.." || { echo "Failed to enter base dir"; exit 1; }
|
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 "$file" | wc -l) -ne 1 ]] && {
|
||||||
echo "Invalid release file count (Expected 1 but got $(echo "$file" | wc -l))"
|
echo "Invalid release file count (Expected 1 but got $(echo "$file" | wc -l))"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
[[ ! -e "$file" ]] && {
|
[[ ! -e "$file" ]] && {
|
||||||
echo "File does not exists"
|
echo "File ($file) does not exists"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
#TeaSpeak-Travis-Web
|
#TeaSpeak-Travis-Web
|
||||||
|
|
Loading…
Reference in New Issue