From 41b84d6eb56731f721074d0202c69df49d963ead Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Thu, 21 May 2026 16:56:59 +0200 Subject: [PATCH] added CI workflow --- .gitea/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..3b16175 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,31 @@ +name: Build and Release Typst PDF + +on: + push: + tags: + - 'v*' + +jobs: + build-and-release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Typst + uses: chataigner/setup-typst@v1 + with: + version: 'latest' + + - name: Compile Typst document + run: typst compile main.typ output.pdf + + - name: Create Release + uses: actions/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: output.pdf + asset_name: protokoll.pdf + tag: ${{ github.ref }} + overwrite: true + body: "Automated PDF build."