mirror of
https://github.com/mx42/cv.git
synced 2026-01-13 20:59:51 +01:00
41 lines
861 B
YAML
41 lines
861 B
YAML
|
|
name: Build PDF and Upload Artifact
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install fontist
|
|
uses: fontist/setup-fontist@v2
|
|
|
|
- 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 FR PDF as artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
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
|