execute pipeline on tag + save

This commit is contained in:
Julien Fastré 2022-05-16 11:22:05 +02:00
parent 9d8d356a92
commit 1d4fb63d46

View File

@ -1,7 +1,11 @@
---
kind: pipeline
type: docker
name: default
name: build-release
when:
event:
- tag
steps:
@ -10,24 +14,18 @@ steps:
commands:
- git submodule init
- git submodule update --recursive --remote
when:
event: tag
- name: pandoc
image: pandoc/alpine:2.14
commands:
- sh build-pandoc.sh latex user > user-manual.tex
- sh build-pandoc.sh latex admin > user-manual.tex
when:
event: tag
- 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
when:
event: tag
- name: release
image: plugins/gitea-release
@ -42,5 +40,8 @@ steps:
- sha512
title: ${DRONE_COMMIT_REF}
prerelease: true
when:
event: tag
---
kind: signature
hmac: 3bfa17ee6ad33613ca8e2fec573050a6d65d3b89e2a0c49f28dbb51b8461a427
...