Chill-manuals/.drone.yml

45 lines
824 B
YAML
Raw Permalink Normal View History

2021-07-26 13:34:35 +00:00
---
kind: pipeline
type: docker
name: default
steps:
2021-07-26 15:55:50 +00:00
- name: submodules
image: alpine/git
commands:
- git submodule init
- git submodule update --recursive --remote
2021-07-26 19:29:34 +00:00
when:
event: tag
2021-07-26 15:55:50 +00:00
2021-07-26 13:34:35 +00:00
- name: pandoc
2021-07-26 15:52:23 +00:00
image: pandoc/alpine:2.14
commands:
- ls
- sh build-pandoc.sh latex > user-manual.tex
2021-07-26 19:29:34 +00:00
when:
event: tag
2021-07-26 13:34:35 +00:00
- name: build-latex
image: ghcr.io/xu-cheng/texlive-full:latest
2021-07-26 15:52:23 +00:00
commands:
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user-manual.tex
2021-07-26 19:29:34 +00:00
when:
event: tag
2021-07-26 13:34:35 +00:00
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_key
base_url: https://gitea.champs-libres.be
files:
- user-manual.pdf
checksum:
- sha512
2021-07-26 19:29:34 +00:00
title: ${DRONE_COMMIT_REF}
2021-07-26 13:34:35 +00:00
prerelease: true
2021-07-26 19:29:34 +00:00
when:
event: tag