Skip to content

Commit

Permalink
Merge pull request #403 from kiwix/create-nightly-directory-if-missing
Browse files Browse the repository at this point in the history
Create the nightly remote directory if it does not exist, during CI.
  • Loading branch information
mossroy authored Aug 4, 2018
2 parents d844881 + 418d3a0 commit 6148f6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ deploy:
# Generation of packages for public releases (launched by a tag)
script: sudo apt-get update -q && sudo apt-get --yes install click click-reviewers-tools && ./scripts/setup_travis_env.sh && DISPLAY=:99.0 ./scripts/create_all_packages.sh -t -v ${TRAVIS_TAG}
on:
tags: true
tags: true
1 change: 1 addition & 0 deletions scripts/create_all_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ if [ "${DRYRUN}zz" == "zz" ]; then
CURRENT_DATE=$(date +'%Y-%m-%d')
# Upload the files on download.kiwix.org
echo "Uploading the files on http://download.kiwix.org/nightly/$CURRENT_DATE/"
ssh -i scripts/travisci_builder_id_key [email protected] mkdir -p /var/www/download.kiwix.org/nightly/$CURRENT_DATE
scp -r -p -i scripts/travisci_builder_id_key build/* [email protected]:/var/www/download.kiwix.org/nightly/$CURRENT_DATE
else
echo "Skipping uploading the files, because it's a dryrun test"
Expand Down

0 comments on commit 6148f6e

Please sign in to comment.