-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathTaskfile.yml
41 lines (35 loc) · 855 Bytes
/
Taskfile.yml
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
version: '3'
tasks:
run:
desc: Run the suimon binary
cmds:
- go run cmd/main.go {{.CLI_ARGS}}
run:monitor:
desc: Run the suimon binary in monitor mode
cmds:
- go run cmd/main.go monitor
build:
desc: Build the suimon binary
cmds:
- go build -o .build/suimon cmd/main.go
lint:
desc: Lint the suimon code
cmds:
- golangci-lint run ./...
update-deps:
desc: Update Go dependencies
cmds:
- go get -u ./...
- go mod tidy
tag:
desc: Create a new release tag
vars:
TAG:
sh: |
echo "Enter release tag:" && read tag && echo $tag
MESSAGE:
sh: |
echo "Enter tag message:" && read message && echo $message
cmds:
- git tag -a "v{{.TAG}}" -m "{{.MESSAGE}}"
- git push origin "v{{.TAG}}"