From 209337dd708d47f239d5f1013b400dfcedd984f8 Mon Sep 17 00:00:00 2001 From: Domipoke <42298508+Domipoke@users.noreply.github.com> Date: Mon, 27 Jul 2026 16:52:49 +0200 Subject: [PATCH] revert --- .gitea/workflows/build-latex.yml | 88 ++++++++++++++++---------------- letteraturagiapponese.tex | 2 +- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.gitea/workflows/build-latex.yml b/.gitea/workflows/build-latex.yml index c9efb8b..b8ace6b 100644 --- a/.gitea/workflows/build-latex.yml +++ b/.gitea/workflows/build-latex.yml @@ -1,55 +1,55 @@ name: Build LaTeX PDF on: - push: - paths: - - '**/*.tex' + push: + paths: + - "**/*.tex" jobs: - build: - runs-on: ubuntu-latest - env: - GIT_SSL_NO_VERIFY: "true" - NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/Egregge.crt - steps: - - name: Checkout - uses: actions/checkout@v4 + build: + runs-on: ubuntu-latest + env: + GIT_SSL_NO_VERIFY: "true" + NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/Egregge.crt + steps: + - name: Checkout + uses: actions/checkout@v4 - - name: Find all root .tex files - id: roots - run: | - ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') - echo "roots=$ROOTS" >> "$GITHUB_OUTPUT" - echo "Root files to build: $ROOTS" + - name: Find all root .tex files + id: roots + run: | + ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') + echo "roots=$ROOTS" >> "$GITHUB_OUTPUT" + echo "Root files to build: $ROOTS" - - name: Compile all root files - if: steps.roots.outputs.roots != '' - uses: docker://texlive/texlive:latest-full - with: - entrypoint: sh - args: >- - -c "mkdir -p pdf aux && for f in ${{ steps.roots.outputs.roots }}; do - echo Building $f; - latexmk -xelatex -interaction=nonstopmode -halt-on-error -outdir=pdf -auxdir=aux \"$f\" || exit 1; - done && find pdf -type f ! -name '*.pdf' -delete" + - name: Compile all root files + if: steps.roots.outputs.roots != '' + uses: docker://texlive/texlive:latest-full + with: + entrypoint: sh + args: >- + -c "mkdir -p pdf aux && for f in ${{ steps.roots.outputs.roots }}; do + echo Building $f; + latexmk -pdf -interaction=nonstopmode -halt-on-error -outdir=pdf -auxdir=aux \"$f\" || exit 1; + done && find pdf -type f ! -name '*.pdf' -delete" - - name: Upload built PDFs - if: steps.roots.outputs.roots != '' - uses: actions/upload-artifact@v3 - with: - name: pdf-output - path: pdf/*.pdf + - name: Upload built PDFs + if: steps.roots.outputs.roots != '' + uses: actions/upload-artifact@v3 + with: + name: pdf-output + path: pdf/*.pdf - - name: Commit PDFs back to repo - if: steps.roots.outputs.roots != '' - run: | - git config user.name "gitea-actions" - git config user.email "actions@gitea.local" - git remote set-url origin "https://Domipoke:${{ secrets.GITEA_PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git" + - name: Commit PDFs back to repo + if: steps.roots.outputs.roots != '' + run: | + git config user.name "gitea-actions" + git config user.email "actions@gitea.local" + git remote set-url origin "https://Domipoke:${{ secrets.GITEA_PUSH_TOKEN }}@gitea.egregge.eg/Domipoke/SharedLaTeX.git" - BRANCH="${GITHUB_REF#refs/heads/}" - echo "Pushing to branch: $BRANCH" + BRANCH="${GITHUB_REF#refs/heads/}" + echo "Pushing to branch: $BRANCH" - git add pdf/*.pdf - git diff --cached --quiet || git commit -m "CI: rebuild all PDFs [skip ci]" - git push origin HEAD:refs/heads/"$BRANCH" \ No newline at end of file + git add pdf/*.pdf + git diff --cached --quiet || git commit -m "CI: rebuild all PDFs [skip ci]" + git push origin HEAD:refs/heads/"$BRANCH" diff --git a/letteraturagiapponese.tex b/letteraturagiapponese.tex index af56d82..e0ba17a 100644 --- a/letteraturagiapponese.tex +++ b/letteraturagiapponese.tex @@ -24,7 +24,7 @@ \renewcommand{\underline}[1]{\uline{#1}} \usepackage{tabularx} \tcbuselibrary{skins,breakable} -% 5 +% 6 \sffamily \linespread{1.25} \setfootnoterule{0.8\textwidth}