markdown-monster-club/.drone.yml

22 lines
517 B
YAML
Raw Permalink Normal View History

2023-12-22 01:57:51 +00:00
kind: pipeline
type: docker
name: build
steps:
2023-12-22 02:00:56 +00:00
- name: build-book
image: 'pandoc/core:3'
2023-12-22 01:57:51 +00:00
commands:
2023-12-22 02:00:56 +00:00
- 'echo "Commit $DRONE_COMMIT"'
- 'find ./chapters -iname "*.md" -type f -print | sort | xargs -r pandoc -o monster-club_$DRONE_TAG.epub title.txt'
2023-12-22 01:57:51 +00:00
- name: gitea_release
image: plugins/gitea-release
settings:
2023-12-22 02:00:56 +00:00
api_key:
from_secret: gitea_token
2023-12-22 01:57:51 +00:00
base_url: https://git.skobk.in
files:
- 'monster-club_$DRONE_TAG.epub'
2023-12-22 02:00:56 +00:00
when:
event:
- tag