From 95af17bae38cddc463fc16f561ad1b7442bf1ec5 Mon Sep 17 00:00:00 2001 From: John Starich Date: Sun, 23 Feb 2020 11:27:53 -0600 Subject: [PATCH] Add changelog default release body --- .travis.yml | 6 +++++- Makefile | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1467cee..1bdc47b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,10 +31,14 @@ jobs: - provider: releases api_key: secure: Tp7rwUVjuH0hdt776QIE1YhBIXxWsHGpm0OJ/duQIfw0u9AZpiASW8RZPLggnxpCn6J2nhly+KB/y5evbPxv/61MPd/DZApodRatvipWO45DUQZ+6zhdWlboI6uo+lKAoSZ13CRJDSq1rjEsARrJAI2eGXFfqjde8xy2gtImEBI2v79DcJ87D0A3FU8EhSsFZQNQsum7aHfmANmeaExA2XbBs4PRlt9S2b/0j2z+ZRujig0jcY/7zt2FAgYKCjNBXCvW8fXQ098fB4370Ls8Hh0J0IbsidsUS1dqYg54qEeRwMBiTTXSl+qj35SR7BkDknH3ePIADxTKgTRhCqa3gtDtlmGNS2a3btP9ldsHl1cLp8I+SN+NVmxKWCK2gf5jzDK4fSacx6bvxlS12MLn9fNMd3mHHMiEyckfrble/lGSmyqqgQ/XYC+mPixruR5wokHu3MoHHC/u6SI143op9di05MF/rtWc4ErRsPCEEoWYuX2eSGEN+9QbH7NZ5Oe8+kI2YqD1IK64hmATpn7dZOm6Oddtb9eYA900oqmUIe95eh2L7cUp1JqEmu4BUWR/GzGwpnaek7Vb8IpfKBRXy30a+EKF4TBiJDERtOlvaKUP/lr3Qmc5kG70GCMPaA0KXlxphW0m77ISOfdZb/QyPTQAia3rJZXzRhCcO8wVPn0= + body: "$(make changelog)" file: "out/*" file_glob: true skip_cleanup: true draft: true + on: + repo: JohnStarich/sage + all_branches: true # earlier if: limits this - name: macOS app stage: GitHub Release if: branch = master OR tag IS present @@ -77,4 +81,4 @@ jobs: draft: true on: repo: JohnStarich/sage - tags: true + all_branches: true # earlier if: limits this diff --git a/Makefile b/Makefile index 85718dd..c8b082b 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,13 @@ static: cache/ofxhome.xml static-deps # Unset vars from upcoming targets GOOS= GOARCH= go generate ./server ./client/direct/drivers +.PHONY: changelog +changelog: + @if ! which conventional-changelog >/dev/null; then \ + npm install -g conventional-changelog-cli >&2; \ + fi + conventional-changelog + .PHONY: start start: trap 'jobs -p | xargs kill' EXIT; \