From b94f7b6915d2a4ac8042750bf910b7db999327d1 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 22 Dec 2023 05:00:56 +0300 Subject: [PATCH] small fix in .drone.yml --- .drone.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 25bb949..a90e23e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,15 +3,19 @@ type: docker name: build steps: - - - name: build-book - image: 'pandoc/minimal:3' + - name: build-book + image: 'pandoc/core: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' + - 'echo "Commit $DRONE_COMMIT"' + - 'find ./chapters -iname "*.md" -type f -print | sort | xargs -r pandoc -o book.epub title.txt' - name: gitea_release image: plugins/gitea-release settings: - api_key: $GITEA_TOKEN + api_key: + from_secret: gitea_token base_url: https://git.skobk.in files: - 'book.epub' + when: + event: + - tag