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
|
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 |
|
||||||
|
|
Loading…
Reference in a new issue