diff --git a/.github/workflows/build_pdf.yml b/.github/workflows/build_pdf.yml new file mode 100644 index 0000000..bae5c8f --- /dev/null +++ b/.github/workflows/build_pdf.yml @@ -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