mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
ci: Redirect file at the root
This commit is contained in:
parent
1084b5a3ba
commit
6ff9763a44
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -378,7 +378,7 @@ jobs:
|
|||
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
|
||||
sed 's|URL|rtic/index.html|g' $root/redirect.html > $webroot/$ver/api/index.html
|
||||
popd
|
||||
|
||||
for lang in ${langs[@]}; do
|
||||
|
@ -387,7 +387,7 @@ jobs:
|
|||
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
|
||||
sed 's|URL|book/en|g' $root/redirect.html > $webroot/$ver/index.html
|
||||
|
||||
rm -rf $src
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue