From 775f2d08d3e262e2610f889292780226f9c34625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sat, 4 Mar 2023 20:43:29 +0100 Subject: [PATCH] ci: oldbooks simplify --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5a96326c5..184192a76b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -370,7 +370,8 @@ jobs: for ver in ${vers[@]}; do - src=$(mktemp -d) + mkdir -p src/$ver + src=$root/src/$ver curl -L https://github.com/rtic-rs/rtic/archive/release/v${ver}.tar.gz | tar xz --strip-components 1 -C $src pushd $src @@ -378,15 +379,17 @@ 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' $root/redirect.html > $webroot/$ver/api/index.html popd for lang in ${langs[@]}; do cargo xtask book build $src/book/$lang - + cp -r $src/book/$lang/book $webroot/$ver/book/$lang cp LICENSE-* $webroot/$ver/book/$lang/ done + # using master branch redirect file sed 's|URL|book/en|g' $root/redirect.html > $webroot/$ver/index.html rm -rf $src