mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
ci: mkbookold: Make sure paths exists for the books
This commit is contained in:
parent
f6c73f77d9
commit
8e562c77c3
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -376,6 +376,7 @@ jobs:
|
|||
pushd $src
|
||||
rm -f .cargo/config
|
||||
cargo doc || cargo doc --features timer-queue
|
||||
mkdir -p $webroot/$ver/book
|
||||
cp -r target/doc $webroot/$ver/api
|
||||
sed 's|URL|rtic/index.html|g' $webroot/redirect.html > $webroot/$ver/api/index.html
|
||||
popd
|
||||
|
@ -383,7 +384,7 @@ jobs:
|
|||
for lang in ${langs[@]}; do
|
||||
cargo xtask book build $src/book/$lang
|
||||
|
||||
cp -r book/$lang/$book $webroot/$ver/book/$lang
|
||||
cp -r $src/book/$lang/book $webroot/$ver/book/$lang
|
||||
cp LICENSE-* $webroot/$ver/book/$lang/
|
||||
done
|
||||
sed 's|URL|book/en|g' $webroot/redirect.html > $webroot/$ver/index.html
|
||||
|
|
Loading…
Reference in a new issue