Skip to content

Commit

Permalink
Auto-generate a changelog #24
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaumgarten committed Jun 13, 2020
1 parent 2e1fc8d commit 84aa1ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.out
yodk
yodk.exe
yodk.exe~
lslog
!vscode-yolol/.vscode
*.vsix
Expand All @@ -10,4 +11,5 @@ docs/generated/*
docs/README.ms
docs/vscode-yolol.md
examples/nolol/*.yolol
dalog
dalog
CHANGELOG.md
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,6 +41,7 @@ deploy:
- yodk-linux.zip
- vscode-yolol.vsix
skip_cleanup: true
release_notes_file: "CHANGELOG.md"
on:
tags: true
- provider: script
Expand Down
6 changes: 6 additions & 0 deletions build-changelog.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 84aa1ab

Please sign in to comment.