first impl for drone
This commit is contained in:
parent
e8d57f99a8
commit
61fb8a8f66
26
.drone.yml
Normal file
26
.drone.yml
Normal 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
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
build/*
|
build/*
|
||||||
user-manual.pdf
|
user-manual.*
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user