From 7a9bc40eabae06d4a22b065e6a07f9dee8427708 Mon Sep 17 00:00:00 2001 From: Riccardo Finotello Date: Mon, 6 Jan 2025 18:57:07 +0100 Subject: [PATCH] Update workflow --- .gitea/workflows/{demo.yaml => xelatex.yaml} | 17 ++++++++++++++--- cv.tex | 1 + 2 files changed, 15 insertions(+), 3 deletions(-) rename .gitea/workflows/{demo.yaml => xelatex.yaml} (65%) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/xelatex.yaml similarity index 65% rename from .gitea/workflows/demo.yaml rename to .gitea/workflows/xelatex.yaml index c537cc6..fe09f1a 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/xelatex.yaml @@ -1,9 +1,9 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: Compile PDF +run-name: ${{ gitea.actor }} is compiling a PDF 🚀 on: [push] jobs: - Explore-Gitea-Actions: + Compile-PDF: runs-on: ubuntu-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." @@ -16,4 +16,15 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} + - name: Install missing packages to build the pdf + run: | + apt install -y texlive-full + - name: Compile the PDF + run: | + latexmk -pdfxe cv.tex + - name: Archive artifacs + uses: actions/upload-artifact@v4 + with: + name: curriculum-vitae + path: cv.pdf - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/cv.tex b/cv.tex index 0ee1b40..32fda80 100644 --- a/cv.tex +++ b/cv.tex @@ -1,3 +1,4 @@ +% !TeX root = cv.tex % !TeX program = xelatex \documentclass[a4paper,11pt]{educv}