mirror of
https://github.com/kopia/kopia.git
synced 2026-05-14 09:47:35 -04:00
fix(ci): generate changelog as part of the build (#1679)
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
|
||||
5
Makefile
5
Makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user