mirror of
https://github.com/cooperspencer/gickup
synced 2024-09-08 03:50:36 +02:00
20 lines
260 B
Makefile
20 lines
260 B
Makefile
lasttag := ```
|
|
git describe --tags `git rev-list --tags --max-count=1`
|
|
```
|
|
|
|
build:
|
|
go build .
|
|
|
|
release:
|
|
git checkout {{lasttag}}
|
|
go build -ldflags '-X "main.version={{lasttag}}"'
|
|
|
|
cleanup:
|
|
go mod tidy
|
|
gofmt -s -w .
|
|
|
|
update:
|
|
go get -u
|
|
|
|
pull:
|
|
git pull
|