From e3b48dd0ff6287a16db7d2472d4af21a6a8c7dcb Mon Sep 17 00:00:00 2001 From: Mirko Milovanovic Date: Mon, 24 Feb 2025 12:28:08 +0100 Subject: [PATCH] feat: enhance GitHub Actions workflow for LaTeX document processing and add Italian hyphenation patterns --- .github/workflows/main.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1f9c49..17a4c01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,14 +32,28 @@ jobs: - name: Enable automatic package installation run: initexmf --set-config-value=[MPM]AutoInstall=yes - - name: Build LaTeX document + - name: Build LaTeX document (first run) + run: | + pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1) + + - name: Generate .bcf file + run: pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1) + + - name: Run Biber to process bibliography + run: biber ${{ env.TEX_NAME }} + + - name: Build LaTeX document (second run) + run: | + pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1) + + - name: Build LaTeX document (third run) run: | pdflatex -interaction=nonstopmode -halt-on-error ${{ env.TEX_NAME }} || (cat /root/.miktex/texmfs/data/miktex/log/pdflatex.log && exit 1) - name: Check for PDF artifact run: file ${{ env.PDF_NAME }} || grep -q ' PDF ' - - name: Delete release and tag by tag name`:` latest + - name: Delete latest release and tag if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | curl -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" -X DELETE https://gitea.kobim.cloud/api/v1/repos/${{ github.repository }}/releases/tags/latest