From 84aa1ab6508d45a85372bd40421c698be620a7bf Mon Sep 17 00:00:00 2001 From: Daniel Baumgarten Date: Sat, 13 Jun 2020 19:25:46 +0200 Subject: [PATCH] Auto-generate a changelog #24 --- .gitignore | 4 +++- .travis.yml | 3 +++ build-changelog.sh | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 build-changelog.sh diff --git a/.gitignore b/.gitignore index cb41c12..e556cbc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.out yodk yodk.exe +yodk.exe~ lslog !vscode-yolol/.vscode *.vsix @@ -10,4 +11,5 @@ docs/generated/* docs/README.ms docs/vscode-yolol.md examples/nolol/*.yolol -dalog \ No newline at end of file +dalog +CHANGELOG.md \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 10a422e..4c4ebac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,9 @@ script: - npm run vscode:prepublish - npm test --silent - cd .. + - ./build-changelog.sh before_deploy: + - cp CHANGELOG.md vscode-yolol/ - cd vscode-yolol - npm version --no-git-tag-version $(echo ${TRAVIS_TAG} | tr -d v) --allow-same-version - vsce package @@ -39,6 +41,7 @@ deploy: - yodk-linux.zip - vscode-yolol.vsix skip_cleanup: true + release_notes_file: "CHANGELOG.md" on: tags: true - provider: script diff --git a/build-changelog.sh b/build-changelog.sh new file mode 100755 index 0000000..600ac38 --- /dev/null +++ b/build-changelog.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +echo "## Changes since $(git describe --tags --abbrev=0 @^) (auto-generated)" > CHANGELOG.md +git log '--format=format: - %s' $(git describe --tags --abbrev=0 @^)..@ >> CHANGELOG.md +echo "" >> CHANGELOG.md +cat CHANGELOG.md \ No newline at end of file