[TRAVIS] Add a script to deploy archives on download.kiwix.org/nightly

This commit is contained in:
Matthieu Gautier
2017-02-07 17:41:36 +01:00
parent 3ac377b8c0
commit 99c94b552e
4 changed files with 23 additions and 0 deletions

13
travis/deploy.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
BASE_DIR="BUILD_${BUILD_TARGET}_static/INSTALL"
if [ "${BUILD_TARGET}" = "win32" ]; then
ARCHIVE_OPTION="--zip"
else
ARCHIVE_OPTION="--tar"
fi
./kiwix-deploy.py ${BASE_DIR} ${ARCHIVE_OPTION} \
--deploy \
--ssh_private_key=travis/travisci_builder_id_key \
--server=nightlybot@download.kiwix.org \
--base_path=/var/www/download.kiwix.org/nightly