Compare commits

...

5 Commits

Author SHA1 Message Date
314aa4b989 restrict ci on tags
Some checks reported errors
continuous-integration/drone/tag Build encountered an error
2021-07-26 21:29:34 +02:00
c39b0d98d9 add explanation to README about dependencies [ci-skip] 2021-07-26 17:59:27 +02:00
b935e1ba68 clone submodules 2021-07-26 17:55:50 +02:00
8dbc9aa196 fix drone ci 2021-07-26 17:52:23 +02:00
61fb8a8f66 first impl for drone 2021-07-26 15:34:35 +02:00
4 changed files with 54 additions and 7 deletions

44
.drone.yml Normal file
View File

@ -0,0 +1,44 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule init
- git submodule update --recursive --remote
when:
event: tag
- name: pandoc
image: pandoc/alpine:2.14
commands:
- ls
- sh build-pandoc.sh latex > user-manual.tex
when:
event: tag
- 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
when:
event: tag
- 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_COMMIT_REF}
prerelease: true
when:
event: tag

2
.gitignore vendored
View File

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

View File

@ -18,3 +18,8 @@ Le fichier généré est `user-manual.pdf`
L'utilisateur qui exécute la compilation est, par défaut, l'utilisateur ayant l'id `1000`.
## Dépendances latex
### Awesomebox
Pour créer des "box": https://www.ctan.org/tex-archive/graphics/awesomebox

View File

@ -1,14 +1,12 @@
#!/bin/bash
echo "This script is for building pandoc natively"
#!/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
@ -28,7 +26,7 @@ export LATEX_ARGS="
"
if [ $target == "debug" ]; then
if [ $target == "latex" ]; then
pandoc $ARGS $LATEX_ARGS \
--to latex \
$files;