Skip to content

Commit

Permalink
Add changelog Make target
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanez committed Jan 9, 2020
1 parent 178d69e commit 6c79583
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ clean-go:

clean: $(clean-targets)

# Assemble Change log.
changelog:
@if [[ -z "$(NEXT_VERSION)" ]]; then \
echo "Error: Could not compute project's new version."; \
exit 1; \
else \
echo "Generating changelog for version $(NEXT_VERSION)..."; \
towncrier build --version $(NEXT_VERSION); \
echo "Next, review the staged changes, commit them and make a pull request."; \
fi

# Prepare release.
release:
@goreleaser $(GORELEASER_ARGS)
Expand All @@ -117,5 +128,5 @@ docker-shell:
$(fmt-targets) fmt \
$(test-unit-targets) $(test-targets) test \
$(clean-targets) clean \
release docker-shell \
changelog release docker-shell \
all

0 comments on commit 6c79583

Please sign in to comment.