From 61fb8a8f66a4edf00dfe31eebc2cf6575b7a8859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 26 Jul 2021 15:34:35 +0200 Subject: [PATCH] first impl for drone --- .drone.yml | 26 ++++++++++++++++++++++++++ .gitignore | 2 +- build-pandoc.sh | 4 +--- 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f7c08f5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,26 @@ +--- +kind: pipeline +type: docker +name: default + +steps: +- name: pandoc + image: pandoc:2.14 + commands: ./build-pandoc latex > user-manual.tex + +- 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 + +- 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 + title: ${DRONE_REPO_BRANCH} + prerelease: true diff --git a/.gitignore b/.gitignore index 2d1e77f..7620ceb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ build/* -user-manual.pdf +user-manual.* diff --git a/build-pandoc.sh b/build-pandoc.sh index 0c009c9..cb39be0 100755 --- a/build-pandoc.sh +++ b/build-pandoc.sh @@ -1,7 +1,5 @@ #!/bin/bash -echo "This script is for building pandoc natively" - # enter the current directory cd "$(dirname $0)" export PANDOC_DIR=pandoc/cl @@ -28,7 +26,7 @@ export LATEX_ARGS=" " -if [ $target == "debug" ]; then +if [ $target == "latex" ]; then pandoc $ARGS $LATEX_ARGS \ --to latex \ $files;