Skip to content

Commit

Permalink
Simplify build.sh
Browse files Browse the repository at this point in the history
The `mdbook-pandoc` extension is always available when building the book in CI, so we can remove the conditional.

From a discussion in #1704.
  • Loading branch information
mgeisler authored Jan 17, 2024
1 parent d731da4 commit 5b6f259
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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::"

0 comments on commit 5b6f259

Please sign in to comment.