Skip to content

Commit 812dc38

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
Add make release
1 parent 61b1a8e commit 812dc38

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test lint bench benchmark clean tag
1+
.PHONY: test lint bench benchmark clean tag release
22

33
# Tag all modules in the repository with a version
44
# Usage: make tag VERSION=v1.2.3
@@ -33,6 +33,15 @@ tag:
3333
@echo "Tags pushed:"
3434
@git tag -l "$(VERSION)" "*/$(VERSION)" | sed 's/^/ /'
3535

36+
# Create a GitHub release
37+
# Usage: make release VERSION=v1.2.3
38+
release: tag
39+
@echo ""
40+
@echo "Step 5: Creating GitHub release..."
41+
@gh release create $(VERSION) --title "$(VERSION)" --notes "Release $(VERSION)"
42+
@echo ""
43+
@echo "=== GitHub release $(VERSION) created ==="
44+
3645
test:
3746
@echo "Running tests in all modules..."
3847
@find . -name go.mod -execdir go test -v -race -cover -short -run '^Test' ./... \;

0 commit comments

Comments
 (0)