Skip to content

Commit dc64556

Browse files
authored
Merge pull request kubernetes-sigs#9573 from cahillsf/cahillsf/update-release-notes-gen-process
🌱 update release-notes make target + corresponding doc
2 parents 5786b77 + de1b74c commit dc64556

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,13 +1097,9 @@ release-alias-tag: ## Add the release alias tag to the last build tag
10971097
gcloud container images add-tag $(CAPIM_CONTROLLER_IMG):$(TAG) $(CAPIM_CONTROLLER_IMG):$(RELEASE_ALIAS_TAG)
10981098
gcloud container images add-tag $(TEST_EXTENSION_IMG):$(TAG) $(TEST_EXTENSION_IMG):$(RELEASE_ALIAS_TAG)
10991099

1100-
.PHONY: release-notes
1101-
release-notes: $(RELEASE_NOTES_DIR) $(RELEASE_NOTES)
1102-
if [ -n "${PRE_RELEASE}" ]; then \
1103-
echo ":rotating_light: This is a RELEASE CANDIDATE. Use it only for testing purposes. If you find any bugs, file an [issue](https://github.com/kubernetes-sigs/cluster-api/issues/new)." > $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md; \
1104-
else \
1105-
go run ./hack/tools/release/notes.go --from=$(PREVIOUS_TAG) > $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md; \
1106-
fi
1100+
.PHONY: release-notes-tool
1101+
release-notes-tool:
1102+
go build -o bin/notes hack/tools/release/notes.go
11071103

11081104
.PHONY: promote-images
11091105
promote-images: $(KPROMO)

docs/release/release-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ The goal of this task to make the book for the current release available under e
322322
1. Checkout the `main` branch.
323323
1. Build the release note tools binary.
324324
```bash
325-
go build -o bin/notes hack/tools/release/notes.go
325+
make release-notes-tool
326326
```
327327
1. Checkout the latest commit on the release branch, e.g. `release-1.4`, or the main branch if the release branch doesn't yet exist (e.g. beta release).
328328
1. Generate release notes with:

0 commit comments

Comments
 (0)