forked from Chill-project/manuals
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: build-release
|
|
|
|
clone:
|
|
disabled: true
|
|
|
|
steps:
|
|
|
|
- name: clone
|
|
image: plugins/git
|
|
settings:
|
|
recursive: true
|
|
|
|
- name: pandoc
|
|
image: pandoc/core:2.18-alpine
|
|
commands:
|
|
- sh build-pandoc.sh latex user > user/user-manual.tex
|
|
- sh build-pandoc.sh latex admin > admin/admin-manual.tex
|
|
|
|
- name: build-latex
|
|
image: ghcr.io/xu-cheng/texlive-full:latest
|
|
commands:
|
|
- echo "images"
|
|
- ls user/img
|
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user/user-manual.tex
|
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex admin/admin-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: 06b44b3f8e3782a4b11e980bc13335719450f936cedbe40bb01cdea3351791ca
|
|
|
|
...
|