manuals/.drone.yml

45 lines
1019 B
YAML

---
kind: pipeline
type: docker
name: build-release
steps:
- name: submodules
image: alpine/git
commands:
- git submodule init
- git submodule update --recursive --remote
- name: pandoc
image: pandoc/core:2.14-alpine
commands:
- sh build-pandoc.sh latex user > user-manual.tex
- sh build-pandoc.sh latex admin > user-manual.tex
- name: build-latex
image: ghcr.io/xu-cheng/texlive-full:latest
commands:
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user-manual.tex
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex latex-manual.tex
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_key
base_url: https://gitea.champs-libres.be
files:
- user-manual.pdf
- admin-manual.pdf
checksum:
- sha512
title: ${DRONE_TAG:=latest}
prerelease: true
---
kind: signature
hmac: 0b3c580c341083b8604053e1d5462ee6856c2d00dce9094e9a64ddd5a401e799
...