You've already forked comprehensive-rust
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:
4
.github/workflows/build.sh
vendored
4
.github/workflows/build.sh
vendored
@ -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::"
|
||||
|
Reference in New Issue
Block a user