From 263f7e6d9f2dc7e526e911d31497fa085eec9756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kysela?= Date: Tue, 13 Oct 2026 10:34:01 +0200 Subject: [PATCH] Added publish action --- .gitea/workflows/publish.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..def84f6 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,25 @@ +name: Publish Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Setup Typst + uses: typst-community/setup-typst@v5 + + - name: Build PDF + run: typst compile site/pocitacove-site.typ site/pocitacove-site.pdf + + - name: Upload to Release + uses: softprops/action-gh-release@v3 + with: + files: site/pocitacove-site.pdf + name: Skripta ${{ gitea.ref }} \ No newline at end of file