File tree 2 files changed +57
-0
lines changed
2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : release
2
+ on :
3
+ push :
4
+ tags :
5
+ - " v[0-9]+.[0-9]+.[0-9]+"
6
+ jobs :
7
+ goreleaser :
8
+ runs-on : ubuntu-18.04
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v2
12
+ - name : Setup Go
13
+ uses : actions/setup-go@v2
14
+ with :
15
+ go-version : " ^1.14"
16
+ - name : Run GoReleaser
17
+ uses : goreleaser/goreleaser-action@v2
18
+ with :
19
+ version : latest
20
+ args : release --rm-dist
21
+ env :
22
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ project_name : pseudo-web-server
2
+ env :
3
+ - GO111MODULE=on
4
+ before :
5
+ hooks :
6
+ - go mod download
7
+ - go mod tidy
8
+ builds :
9
+ - main : .
10
+ ldflags :
11
+ - -s -w
12
+ - -X main.Version={{.Version}}
13
+ - -X main.Revision={{.ShortCommit}}
14
+ env :
15
+ - CGO_ENABLED=0
16
+ goos :
17
+ - linux
18
+ - windows
19
+ goarch :
20
+ - 386
21
+ - amd64
22
+ archives :
23
+ - name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
24
+ replacements :
25
+ 386 : i386
26
+ amd64 : x86_64
27
+ format_overrides :
28
+ - goos : windows
29
+ format : zip
30
+ files :
31
+ - README.md
32
+ release :
33
+ prerelease : auto
34
+ checksum :
35
+ name_template : " checksums.txt"
You can’t perform that action at this time.
0 commit comments