fix(ci): generate changelog as part of the build (#1679)

This commit is contained in:
Jarek Kowalski
2022-01-23 16:58:33 -08:00
committed by GitHub
parent c2ab5020dc
commit e030c15803
2 changed files with 5 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
### {{ .Title }}
{{ range .Commits -}}
* {{ if eq .Type "fix" }}**Fix** {{ end }}{{ if eq .Type "feat" }}**Feature** {{ end }}{{ .Subject }} by {{ .Author.Name}}
* {{ if eq .Type "feat" }}**New Feature** {{ end }}{{ .Subject }} by {{ .Author.Name}}
{{ end }}
{{ end -}}

View File

@@ -156,6 +156,9 @@ ci-build:
ifeq ($(GOARCH),amd64)
$(retry) $(MAKE) kopia-ui
endif
ifeq ($(GOOS)/$(GOARCH),linux/amd64)
$(MAKE) generate-change-log
endif
ci-tests: lint vet test
@@ -358,7 +361,7 @@ else
$(gitchglog) $(CI_TAG) > dist/change_log.md
endif
push-github-release: generate-change-log
push-github-release:
ifneq ($(GH_RELEASE_REPO),)
@echo Creating Github Release $(GH_RELEASE_NAME) in $(GH_RELEASE_REPO) with flags $(GH_RELEASE_FLAGS)
gh --repo $(GH_RELEASE_REPO) release view $(GH_RELEASE_NAME) || gh --repo $(GH_RELEASE_REPO) release create -F dist/change_log.md $(GH_RELEASE_FLAGS) $(GH_RELEASE_NAME)