diff --git a/.drone.yml b/.drone.yml index f7c08f5..876982f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,12 +5,15 @@ name: default steps: - name: pandoc - image: pandoc:2.14 - commands: ./build-pandoc latex > user-manual.tex + image: pandoc/alpine:2.14 + commands: + - ls + - sh build-pandoc.sh 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 + commands: + - latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user-manual.tex - name: release image: plugins/gitea-release diff --git a/build-pandoc.sh b/build-pandoc.sh index cb39be0..6bcc0e5 100755 --- a/build-pandoc.sh +++ b/build-pandoc.sh @@ -1,12 +1,12 @@ -#!/bin/bash +#!/bin/sh # enter the current directory cd "$(dirname $0)" export PANDOC_DIR=pandoc/cl -files=( +export files=" src/parcours.md -) +" if [ -z $1 ]; then export target=pdf