From fac00336f3d3c10b0011221dd021c4873fce6e2c Mon Sep 17 00:00:00 2001 From: minty <77310871+mintyfrankie@users.noreply.github.com> Date: Mon, 26 Jun 2023 09:50:08 +0200 Subject: [PATCH] github: add compile workflow --- .github/workflows/compile.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..1eee309 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,30 @@ +name: Check PDF Compilation + +on: + push: {} + pull_request: {} + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Setup Typst + uses: yusancky/setup-typst@v1 + id: setup-typst + with: + version: 'v0.5.0' + + - run: typst --font-path ./src/fonts compile cv.typ + - run: typst --font-path ./src/fonts compile letter.typ + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: output + path: ./*.pdf + if-no-files-found: error \ No newline at end of file