first impl for drone

This commit is contained in:
Julien Fastré 2021-07-26 15:34:35 +02:00
parent e8d57f99a8
commit 61fb8a8f66
3 changed files with 28 additions and 4 deletions

26
.drone.yml Normal file
View File

@ -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

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
build/* build/*
user-manual.pdf user-manual.*

View File

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
echo "This script is for building pandoc natively"
# enter the current directory # enter the current directory
cd "$(dirname $0)" cd "$(dirname $0)"
export PANDOC_DIR=pandoc/cl export PANDOC_DIR=pandoc/cl
@ -28,7 +26,7 @@ export LATEX_ARGS="
" "
if [ $target == "debug" ]; then if [ $target == "latex" ]; then
pandoc $ARGS $LATEX_ARGS \ pandoc $ARGS $LATEX_ARGS \
--to latex \ --to latex \
$files; $files;