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 15:05:22 +00:00
|
|
|
- 'echo "Current tag (if any): $DRONE_TAG"'
|
|
|
|
- 'find ./chapters -iname "*.md" -type f -print | sort | xargs -r pandoc -o "monster-club_$DRONE_TAG.epub" title.txt'
|
|
|
|
- 'ls -la ./*.epub'
|
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:
|
2023-12-22 14:50:26 +00:00
|
|
|
- 'monster-club_$DRONE_TAG.epub'
|
2023-12-22 02:00:56 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|