From 73c1caeb2d90ecfe1b25b44e989f43edefccf662 Mon Sep 17 00:00:00 2001 From: installer Date: Thu, 16 Jan 2025 18:42:09 +0100 Subject: [PATCH] fix: install font and split artifacts (?) --- .github/workflows/build_pdf.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_pdf.yml b/.github/workflows/build_pdf.yml index effe60a..73a1205 100644 --- a/.github/workflows/build_pdf.yml +++ b/.github/workflows/build_pdf.yml @@ -11,18 +11,30 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - uses: typst-community/setup-typst@v3 - with: - cache-dependency-path: requirements.typ + - name: Install fontist + uses: fontist/setup-fontist@v2 - - run: | + - name: Install font + run: fontist install "Roboto" + + - name: Install Typst + uses: typst-community/setup-typst@v3 + # with: + # cache-dependency-path: requirements.typ + + - name: Build PDFs + run: | typst compile cv_en.typ cv_en.pdf typst compile cv_fr.typ cv_fr.pdf - - name: Upload PDF as artifact + - name: Upload FR PDF as artifact uses: actions/upload-artifact@v4 with: - name: CV - path: | - cv_fr.pdf - cv_en.pdf + name: CV FR + path: cv_fr.pdf + + - name: Upload EN PDF as artifact + uses: actions/upload-artifact@v4 + with: + name: CV EN + path: cv_en.pdf