From 2a7e3efdaa50b884608db33b15ad46356add50b4 Mon Sep 17 00:00:00 2001 From: sun123zxy <304244450@qq.com> Date: Wed, 30 Oct 2024 00:29:12 +0800 Subject: [PATCH] update action --- .github/workflows/render.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 84679a3..4e5b9a6 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -22,12 +22,32 @@ jobs: uses: quarto-dev/quarto-actions/setup@v2 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: + # with: # To install LaTeX to build PDF book - tinytex: true + # tinytex: true # uncomment below and fill to pin a version # version: SPECIFIC-QUARTO-VERSION-HERE + + - name: Set up TinyTeX via Quarto manually + # To update PATH + run: | + quarto install tinytex --update-path + echo "$HOME/bin" >> $GITHUB_PATH + PATH="$PATH:$HOME/bin" + echo "" >> temp.qmd + - name: Prepare for TikZ rendering + # To ensure dvisvgm installed + # To import libraries in advance for tikz image generation + # To test rendering of tikz images + run: | + tlmgr install dvisvgm + quarto render temp.qmd --to=pdf --template=_assets/suntemp-tikz.tex + dvisvgm temp.pdf --pdf + rm temp.qmd + rm temp.pdf + rm temp.svg + # add software dependencies here and any libraries # From https://github.com/actions/setup-python