From 5f081aaf8e8baeb8e9b80b26d4ea62bb2f9ab561 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Mon, 29 Jul 2024 21:06:21 -0700 Subject: [PATCH] ci: Slightly clean up actions code --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39f9ee17..bbaa0960 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,8 +103,10 @@ jobs: - name: Compile flowchart run: | - latexmk -pdflatex flowchart-only.tex - gs -dSAFER -r600 -sDEVICE=png256 -o flowchart.png flowchart-only.pdf + ./export-flowchart.sh + - name: Extract table of contents + run: | + python3 print-toc.py --parts --chapters --numbers > toc.txt - name: Create dist folder run: | @@ -115,8 +117,8 @@ jobs: cp asy/*.asy dist/asy/ cp asy/*.pdf dist/asy/ - python3 print-toc.py -pcn > dist/toc.txt cp flowchart.png dist/ + cp toc.txt dist/ cd dist tree -H '.' -I "index.html" -D --charset utf-8 --filesfirst -T "An Infinitely Large Napkin" >index.html