18 lines
464 B
YAML
18 lines
464 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: build
|
||
|
|
||
|
steps:
|
||
|
-
|
||
|
name: build-book
|
||
|
image: 'pandoc/minimal:3'
|
||
|
commands:
|
||
|
- 'find ./chapters -iname "*.md" -type f -print | sort | xargs -r docker run --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) pandoc/minimal -o book.epub title.txt'
|
||
|
- name: gitea_release
|
||
|
image: plugins/gitea-release
|
||
|
settings:
|
||
|
api_key: $GITEA_TOKEN
|
||
|
base_url: https://git.skobk.in
|
||
|
files:
|
||
|
- 'book.epub'
|