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;