press/.drone.yml

36 lines
690 B
YAML

---
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