From a01f6d2322d6a0ea32ebebbc8762cd88bd20290f Mon Sep 17 00:00:00 2001 From: aminecmi Date: Wed, 28 Dec 2022 21:43:56 +0100 Subject: [PATCH] chore: Automatic CHANGELOG generation. --- .drone.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b0a8839..1a70874 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,12 +42,18 @@ type: docker name: Publish steps: - - name: createTag + - name: createTagAndChangelog image: ubuntu:latest commands: - apt-get update && apt-get install -y git + - VER=$(git describe --tags --abbrev=0) + - CHANGELOG=$(git log $VER..HEAD --pretty="- %s") + - echo "**$VER**\n\n$CHANGELOG\n\n--------------------------------------------------------------------\n\n$(cat CHANGELOG.md)" > CHANGELOG.md + - git add CHANGELOG.md + - git commit -m "Changelog for $VER" - ./build.sh --publish --from-ci - git remote add pushing https://$GITEA_USR:$GITEA_PASS@gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform.git + - git push pushing master - git push pushing --tags environment: TZ: Europe/Paris