forked from lostb1t/Gelato
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (27 loc) · 1.07 KB
/
Copy pathMakefile
File metadata and controls
29 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
release:
@echo "Fetching tags..."
git fetch --tags
@echo "Bumping version with git-cliff..."
$(eval NEW_VERSION := $(shell git cliff --bumped-version))
@echo "New version will be: $(NEW_VERSION)"
@echo "Generating changelog..."
@git cliff --unreleased --tag $(NEW_VERSION) --strip all > /tmp/release_notes.md
@echo "Updating version in build.yaml..."
sed -i 's/^version: .*/version: "$(NEW_VERSION:v%=%)"/' build.yaml
git add build.yaml
git commit -m "chore(release): bump version to $(NEW_VERSION)"
@echo "Pushing to git..."
git push
@echo "Creating GitHub release..."
gh release create $(NEW_VERSION) --title "$(NEW_VERSION)" --notes-file /tmp/release_notes.md
@echo "Release $(NEW_VERSION) created successfully!"
test:
@echo "Fetching tags..."
git fetch --tags
@echo "Bumping version with git-cliff..."
$(eval NEW_VERSION := $(shell git cliff --bumped-version))
@echo "New version will be: $(NEW_VERSION)"
@echo "Generating changelog..."
@git cliff --unreleased --tag $(NEW_VERSION) --strip all > /tmp/release_notes.md
@cat /tmp/release_notes.md
.PHONY: release test