fix ci/after-success.sh

This commit is contained in:
Jorge Aparicio 2019-02-11 22:07:15 +01:00
parent 672886a67a
commit 26e0054419

View file

@ -1,16 +1,19 @@
set -euxo pipefail set -euxo pipefail
main() { main() {
local langs=( en ru )
rm -f .cargo/config rm -f .cargo/config
cargo doc --features timer-queue cargo doc --features timer-queue
( cd book && mdbook build )
( cd ru && mdbook build )
local td=$(mktemp -d) local td=$(mktemp -d)
cp -r target/doc $td/api cp -r target/doc $td/api
cp -r book/book $td/ mkdir $td/book/
cp -r ru/book $td/book/ru for lang in ${langs[@]}; do
cp LICENSE-* $td/book/ ( cd book/$lang && mdbook build )
cp -r book/$lang/book $td/book/$lang
cp LICENSE-* $td/book/$lang/
done
mkdir ghp-import mkdir ghp-import
curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz | curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |