From 26e005441989494882f8ffb7aa687a8ce1f071b5 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 11 Feb 2019 22:07:15 +0100 Subject: [PATCH] fix ci/after-success.sh --- ci/after-success.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ci/after-success.sh b/ci/after-success.sh index 04376d668c..14fccff37b 100644 --- a/ci/after-success.sh +++ b/ci/after-success.sh @@ -1,16 +1,19 @@ set -euxo pipefail main() { + local langs=( en ru ) + rm -f .cargo/config cargo doc --features timer-queue - ( cd book && mdbook build ) - ( cd ru && mdbook build ) local td=$(mktemp -d) cp -r target/doc $td/api - cp -r book/book $td/ - cp -r ru/book $td/book/ru - cp LICENSE-* $td/book/ + mkdir $td/book/ + for lang in ${langs[@]}; do + ( cd book/$lang && mdbook build ) + cp -r book/$lang/book $td/book/$lang + cp LICENSE-* $td/book/$lang/ + done mkdir ghp-import curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |