File tree 2 files changed +101
-0
lines changed
2 files changed +101
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ permissions :
9
+ contents : write
10
+ packages : write
11
+ issues : write
12
+
13
+ jobs :
14
+ goreleaser :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : 0
21
+
22
+ - name : Set up Go
23
+ uses : actions/setup-go@v5
24
+ with :
25
+ go-version : " 1.24.1"
26
+
27
+ - name : Run GoReleaser
28
+ uses : goreleaser/goreleaser-action@v5
29
+ with :
30
+ distribution : goreleaser
31
+ version : latest
32
+ args : release --clean
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ project_name : togo
2
+
3
+ before :
4
+ hooks :
5
+ - go mod tidy
6
+
7
+ builds :
8
+ - env :
9
+ - CGO_ENABLED=0
10
+ goos :
11
+ - linux
12
+ - darwin
13
+ - windows
14
+ goarch :
15
+ - amd64
16
+ - arm64
17
+ - " 386"
18
+ main : ./main.go
19
+ binary : " togo-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
20
+ ldflags :
21
+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
22
+ ignore :
23
+ - goos : darwin
24
+ goarch : " 386"
25
+
26
+ archives :
27
+ - format : tar.gz
28
+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
29
+ format_overrides :
30
+ - goos : windows
31
+ format : zip
32
+ files :
33
+ - LICENSE
34
+ - README.md
35
+
36
+ nfpms :
37
+ - vendor : " Togo"
38
+ homepage : " https://github.com/prime-run/togo"
39
+ maintainer : " prime-run"
40
+ description : " togo: A termianl todo application built go"
41
+ license : " MIT"
42
+ formats :
43
+ - deb
44
+ - rpm
45
+ bindir : /usr/bin
46
+
47
+ checksum :
48
+ name_template : " checksums.txt"
49
+
50
+ snapshot :
51
+ name_template : " {{ incpatch .Version }}-next"
52
+
53
+ changelog :
54
+ sort : asc
55
+ filters :
56
+ exclude :
57
+ - " ^docs:"
58
+ - " ^test:"
59
+ - " ^ci:"
60
+ - " ^chore:"
61
+
62
+ release :
63
+ github :
64
+ owner : prime-run
65
+ name : togo
66
+ prerelease : auto
67
+ draft : false
You can’t perform that action at this time.
0 commit comments