From 6f4ae177da90f98ebf46e58b101d745f269a60d6 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Mon, 8 Sep 2025 23:25:33 -0700 Subject: [PATCH] gitea: build pdf on push --- .gitea/workflows/build-pdf.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/build-pdf.yml diff --git a/.gitea/workflows/build-pdf.yml b/.gitea/workflows/build-pdf.yml new file mode 100644 index 0000000..cb804f4 --- /dev/null +++ b/.gitea/workflows/build-pdf.yml @@ -0,0 +1,35 @@ +name: Build PDF + +on: + push: + branches: [ main, master ] + pull_request: + workflow_dispatch: + +jobs: + pdf: + name: make pdf + runs-on: ubuntu-latest + container: + image: golang:1.22-bookworm + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Chromium and tools + run: | + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + make chromium ca-certificates fonts-liberation + rm -rf /var/lib/apt/lists/* + + - name: Build PDF + run: make pdf + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: output-pdf + path: _dist/output.pdf + if-no-files-found: error +