mirror of
https://github.com/mx42/cv.git
synced 2026-01-14 13:19:50 +01:00
feat: add CI (?)
This commit is contained in:
31
.github/workflows/build_pdf.yml
vendored
Normal file
31
.github/workflows/build_pdf.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
name: Build PDF and Upload Artifact
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: typst-community/setup-typst@v3
|
||||||
|
with:
|
||||||
|
cache-dependency-path: requirements.typ
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
typst compile cv_en.typ cv_en.pdf
|
||||||
|
typst compile cv_fr.typ cv_fr.pdf
|
||||||
|
|
||||||
|
- name: Upload PDF as artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: CV
|
||||||
|
path: |
|
||||||
|
cv_fr.pdf
|
||||||
|
cv_en.pdf
|
||||||
Reference in New Issue
Block a user