From 9313446e08937518d20a87b27276bcd059ca27ce Mon Sep 17 00:00:00 2001 From: ericthelemur Date: Mon, 17 Jun 2024 18:08:55 +0100 Subject: [PATCH] Add Latex compile workflow --- .github/workflows/pdf.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pdf.yml diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml new file mode 100644 index 0000000..4679108 --- /dev/null +++ b/.github/workflows/pdf.yml @@ -0,0 +1,32 @@ +name: Generate PDFs + +on: push + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Setup Git repository + uses: actions/checkout@v2 + + - name: Compile Problems + uses: xu-cheng/latex-action@v2 + with: + root_file: | + constitution.tex + work_in_root_file_dir: true + + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: UWCS Programming Problem Sets + path: | + constitution.pdf + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + constitution.pdf