From 314aa4b9898f2f2c70ca488086c0c1fe5edc0c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 26 Jul 2021 21:29:34 +0200 Subject: [PATCH] restrict ci on tags --- .drone.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e9599f9..d2574bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,17 +10,23 @@ steps: commands: - git submodule init - git submodule update --recursive --remote + when: + event: tag - name: pandoc image: pandoc/alpine:2.14 commands: - ls - sh build-pandoc.sh latex > 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 + when: + event: tag - name: release image: plugins/gitea-release @@ -32,5 +38,7 @@ steps: - user-manual.pdf checksum: - sha512 - title: ${DRONE_REPO_BRANCH} + title: ${DRONE_COMMIT_REF} prerelease: true + when: + event: tag