Add CI
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
nemunaire 2024-01-21 18:23:37 +01:00
parent ba1b4bfbe8
commit 9c7ad0b7c1
2 changed files with 35 additions and 8 deletions

35
.drone.yml Normal file
View File

@ -0,0 +1,35 @@
---
kind: pipeline
type: docker
name: compose
platform:
os: linux
arch: amd64
steps:
- name: compose press kit
image: pandoc/latex:3-alpine
commands:
- apk add --no-cache ghostscript make ttf-inconsolata ttf-linux-libertine
- tlmgr install enumitem preprint sectsty
- mkdir dist
- make -C en/ && cp en/press-kit.pdf dist/press-kit-en.pdf
- make -C fr/ && cp fr/press-kit.pdf dist/press-kit-fr.pdf
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.nemunai.re
files: dist/*
title: Press kit ${DRONE_TAG}
when:
event: tag
trigger:
event:
- cron
- push
- tag

View File

@ -13,10 +13,6 @@
\usepackage{sectsty}
\allsectionsfont{\sffamily \bfseries}
% Use sans-serif font for title page
\usepackage{titling}
\renewcommand{\maketitlehooka}{\sffamily}
% Use monospaced font for URLs
\usepackage{hyperref}
\urlstyle{tt}
@ -24,10 +20,6 @@
% In french, list item starts with dash, not bullet
\renewcommand\labelitemi{---}
\usepackage{etoolbox}
\usepackage{tcolorbox}
\lstset{
belowcaptionskip=1\baselineskip,
xleftmargin=6pt,