-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 822 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: all clean default run build update checks pc test
default: checks
run:
go run cmd/deadnews-template-go/main.go
build:
go build -o ./dist/ ./...
goreleaser:
goreleaser --clean --snapshot --skip=publish
update:
go get -u ./...
go mod tidy
go mod verify
install:
pre-commit install
checks: pc test
pc:
pre-commit run -a
test:
go test -v -race -covermode=atomic -coverprofile='coverage.txt' ./...
bumped:
git cliff --bumped-version
# make release-tag_name
# make release-$(git cliff --bumped-version)-alpha.0
release-%: checks
git cliff -o CHANGELOG.md --tag $*
pre-commit run --files CHANGELOG.md || pre-commit run --files CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore(release): prepare for $*"
git push
git tag -a $* -m "chore(release): $*"
git push origin $*
git tag --verify $*