We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b1a8e commit 812dc38Copy full SHA for 812dc38
Makefile
@@ -1,4 +1,4 @@
1
-.PHONY: test lint bench benchmark clean tag
+.PHONY: test lint bench benchmark clean tag release
2
3
# Tag all modules in the repository with a version
4
# Usage: make tag VERSION=v1.2.3
@@ -33,6 +33,15 @@ tag:
33
@echo "Tags pushed:"
34
@git tag -l "$(VERSION)" "*/$(VERSION)" | sed 's/^/ /'
35
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
43
+ @echo "=== GitHub release $(VERSION) created ==="
44
+
45
test:
46
@echo "Running tests in all modules..."
47
@find . -name go.mod -execdir go test -v -race -cover -short -run '^Test' ./... \;
0 commit comments