restrict ci on tags

This commit is contained in:
Julien Fastré 2021-07-26 21:29:34 +02:00
parent c39b0d98d9
commit 314aa4b989
1 changed files with 9 additions and 1 deletions

View File

@ -10,17 +10,23 @@ steps:
commands: commands:
- git submodule init - git submodule init
- git submodule update --recursive --remote - git submodule update --recursive --remote
when:
event: tag
- name: pandoc - name: pandoc
image: pandoc/alpine:2.14 image: pandoc/alpine:2.14
commands: commands:
- ls - ls
- sh build-pandoc.sh latex > user-manual.tex - sh build-pandoc.sh latex > user-manual.tex
when:
event: tag
- name: build-latex - name: build-latex
image: ghcr.io/xu-cheng/texlive-full:latest image: ghcr.io/xu-cheng/texlive-full:latest
commands: 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 user-manual.tex
when:
event: tag
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release
@ -32,5 +38,7 @@ steps:
- user-manual.pdf - user-manual.pdf
checksum: checksum:
- sha512 - sha512
title: ${DRONE_REPO_BRANCH} title: ${DRONE_COMMIT_REF}
prerelease: true prerelease: true
when:
event: tag