Skip to content

Commit 09c05fb

Browse files
committed
Add release target to Makefile
1 parent 5172f25 commit 09c05fb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
GIT := git
12
PRE_COMMIT := pre-commit
23

34
JSONNET_VERSION := v0.18.0
45
GOLANGCI_VERSION := v1.46.2
56

7+
VERSION := v0.2.0
8+
69
.PHONY: fmt
710
fmt:
811
@go fmt ./...
@@ -20,6 +23,12 @@ run:
2023
$(PRE_COMMIT) autoupdate
2124
$(PRE_COMMIT) run --all-files
2225

26+
.PHONY: release
27+
release:
28+
@$(GIT) fetch --tags --prune
29+
@$(GIT) tag --sign -m "GPG signed $(VERSION) tag" $(VERSION)
30+
@$(GIT) push --tags
31+
2332
.PHONY: setup
2433
setup:
2534
@go install github.com/google/go-jsonnet/cmd/jsonnet-lint@$(JSONNET_VERSION)

0 commit comments

Comments
 (0)