Fix publication of release kiwix-desktop on windows.

This commit is contained in:
Matthieu Gautier
2019-03-19 11:24:20 +01:00
parent 74210ece52
commit da30e11f6a
3 changed files with 27 additions and 10 deletions

View File

@ -2,11 +2,20 @@ set -e
NIGHTLY_DATE=$(date +%Y-%m-%d)
NIGHTLY_KIWIX_ARCHIVES_DIR=/c/projects/NIGHTLY_KIWIX_ARCHIVES/${NIGHTLY_DATE}
RELEASE_KIWIX_ARCHIVES_DIR=/c/projects/RELEASE_KIWIX_ARCHIVES
SSH_KEY=C:\\projects\\kiwix-build\\appveyor\\nightlybot_id_key
#if [[ "$APPVEYOR_SCHEDULED_BUILD" = "True" ]]
#then
if [[ "$APPVEYOR_SCHEDULED_BUILD" = "True" ]]
then
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${NIGHTLY_KIWIX_ARCHIVES_DIR} \
ci@download.kiwix.org:/data/download/nightly
#fi
fi
if [[ "$APPVEYOR_REPO_TAG" = "true" ]]
then
RELEASE_ARCHIVES=$(find $RELEASE_KIWIX_ARCHIVES_DIR -type f)
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
${RELEASE_ARCHIVES} \
ci@download.kiwix.org:/data/download/release/kiwix-desktop
fi