From 8dbc9aa1962856f15d41194d412fccfdfe2bdd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 26 Jul 2021 17:52:23 +0200 Subject: [PATCH] fix drone ci --- .drone.yml | 9 ++++++--- build-pandoc.sh | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) 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