File tree 3 files changed +54
-0
lines changed
3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v[0-9]+.[0-9]+.[0-9]+"
7
+
8
+ jobs :
9
+ goreleaser :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 1
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : 1.15
20
+ - name : Run GoReleaser
21
+ uses : goreleaser/goreleaser-action@v2
22
+ with :
23
+ version : latest
24
+ args : release --rm-dist
25
+ env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ project_name : gitsu
2
+
3
+ env :
4
+ - GO111MODULE=on
5
+
6
+ before :
7
+ hooks :
8
+ - go mod tidy
9
+
10
+ builds :
11
+ - main : .
12
+ binary : git-su
13
+ ldflags : -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
14
+
15
+ archives :
16
+ - replacements :
17
+ darwin : darwin
18
+ linux : linux
19
+ windows : windows
20
+ amd64 : x86_64
21
+
22
+ release :
23
+ prerelease : auto
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ Author:
24
24
25
25
var (
26
26
isGlobal = flag .Bool ("global" , false , "Set user as global" )
27
+
28
+ // these are set in build step
29
+ version = "unversioned"
30
+ commit = "?"
31
+ date = "?"
27
32
)
28
33
29
34
func main () {
You can’t perform that action at this time.
0 commit comments