mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
fix ci/after-success.sh
This commit is contained in:
parent
672886a67a
commit
26e0054419
1 changed files with 8 additions and 5 deletions
|
@ -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 |
|
||||
|
|
Loading…
Reference in a new issue