From 41e6c247e3235e79470a036e81dc60194d844fbb Mon Sep 17 00:00:00 2001 From: AadilRn Date: Wed, 30 Sep 2026 01:58:39 -0400 Subject: [PATCH 1/2] add commands to create missing bibtex link and prebuild pdflatex --- .github/workflows/latex-pages.yml | 43 +++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/.github/workflows/latex-pages.yml b/.github/workflows/latex-pages.yml index 27f1dff..648b8de 100644 --- a/.github/workflows/latex-pages.yml +++ b/.github/workflows/latex-pages.yml @@ -107,7 +107,22 @@ jobs: # with "Font rm-lmr7 at 600 not found". sudo updmap-sys >/dev/null + # Restore the bibtex symlink skipped by cache-apt-pkgs postinst + if ! command -v bibtex >/dev/null 2>&1; then + if [ -f /usr/bin/bibtex.original ]; then + sudo ln -sf /usr/bin/bibtex.original /usr/bin/bibtex + elif [ -f /usr/bin/bibtexu ]; then + sudo ln -sf /usr/bin/bibtexu /usr/bin/bibtex + fi + fi + + # Pre-generate pdflatex format at system level to suppress + # user-mode warning + sudo fmtutil-sys --byfmt pdflatex >/dev/null + pdflatex --version | head -1 + # add missing bibtex version check verifying executable exists + bibtex --version | head -1 pandoc --version | head -1 kpsewhich article.cls kpsewhich amsmath.sty @@ -215,17 +230,17 @@ jobs: with: path: public - deploy: - needs: build - # Only the real branch publishes. A pull request, especially one from a - # fork, has a read-only token and cannot deploy, so without this the - # deploy job fails on every pull request. - if: github.event_name != 'pull_request' - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v5 + # deploy: + # needs: build + # # Only the real branch publishes. A pull request, especially one from a + # # fork, has a read-only token and cannot deploy, so without this the + # # deploy job fails on every pull request. + # if: github.event_name != 'pull_request' + # runs-on: ubuntu-latest + # environment: + # name: github-pages + # url: ${{ steps.deployment.outputs.page_url }} + # steps: + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v5 From 0543b6db5de3ea49b5614052f4b003150d7604ce Mon Sep 17 00:00:00 2001 From: AadilRn Date: Wed, 30 Sep 2026 03:02:40 -0400 Subject: [PATCH 2/2] removed comments from deploy job --- .github/workflows/latex-pages.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/latex-pages.yml b/.github/workflows/latex-pages.yml index 648b8de..30be21a 100644 --- a/.github/workflows/latex-pages.yml +++ b/.github/workflows/latex-pages.yml @@ -230,17 +230,17 @@ jobs: with: path: public - # deploy: - # needs: build - # # Only the real branch publishes. A pull request, especially one from a - # # fork, has a read-only token and cannot deploy, so without this the - # # deploy job fails on every pull request. - # if: github.event_name != 'pull_request' - # runs-on: ubuntu-latest - # environment: - # name: github-pages - # url: ${{ steps.deployment.outputs.page_url }} - # steps: - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v5 + deploy: + needs: build + # Only the real branch publishes. A pull request, especially one from a + # fork, has a read-only token and cannot deploy, so without this the + # deploy job fails on every pull request. + if: github.event_name != 'pull_request' + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5