1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-17 03:22:22 +02:00

Always install and run mdbook-pandoc (#1713)

Before, we only installed and ran `mdbook-pandoc` when publishing the
course — which means that a PR change could accidentally break the
publish workflow. We now test that it works on every PR.

From a discussion in #1704.
This commit is contained in:
Martin Geisler
2024-03-04 16:25:58 +01:00
committed by GitHub
parent 1b3984df20
commit c509dbd9e4
3 changed files with 9 additions and 10 deletions

View File

@ -37,9 +37,7 @@ else
fi
mdbook build -d "$dest_dir"
if [ -f "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" ]; then
mv "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" "$dest_dir/html/"
fi
mv "$dest_dir/pandoc/pdf/comprehensive-rust.pdf" "$dest_dir/html/"
(cd "$dest_dir/exerciser" && zip --recurse-paths ../html/comprehensive-rust-exercises.zip comprehensive-rust-exercises/)
echo "::endgroup::"