File tree Expand file tree Collapse file tree 2 files changed +52
-15
lines changed Expand file tree Collapse file tree 2 files changed +52
-15
lines changed Original file line number Diff line number Diff line change 4
4
- ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5
5
name : release
6
6
jobs :
7
- build :
8
- name : Create Release
7
+ goreleaser :
9
8
runs-on : ubuntu-latest
10
9
steps :
11
- - name : Checkout code
12
- uses : actions/checkout@master
13
- - name : Create Release
14
- id : create_release
15
- uses : actions/create-release@v1
10
+ -
11
+ name : Checkout
12
+ uses : actions/checkout@v2
13
+ -
14
+ name : Unshallow
15
+ run : git fetch --prune --unshallow
16
+ -
17
+ name : Set up Go
18
+ uses : actions/setup-go@v1
19
+ with :
20
+ go-version : 1.15.x
21
+ -
22
+ name : Run GoReleaser
23
+ uses : goreleaser/goreleaser-action@v1
24
+ with :
25
+ version : latest
26
+ args : release --rm-dist
16
27
env :
17
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
- with :
19
- tag_name : ${{ github.ref }}
20
- release_name : ${{ github.ref }}
21
- body : |
22
- Changes in this Release
23
- - First change
24
- draft : true
25
- prerelease : false
Original file line number Diff line number Diff line change
1
+ env :
2
+ - GO111MODULE=on
3
+ before :
4
+ hooks :
5
+ - go mod download
6
+ builds :
7
+ - ldflags : -s -w
8
+ env :
9
+ - CGO_ENABLED=0
10
+ goos :
11
+ - linux
12
+ - windows
13
+ - darwin
14
+ goarch :
15
+ - 386
16
+ - amd64
17
+ - arm
18
+ - arm64
19
+ archives :
20
+ -
21
+ replacements :
22
+ darwin : Darwin
23
+ linux : Linux
24
+ windows : Windows
25
+ 386 : i386
26
+ amd64 : x86_64
27
+ format : gz
28
+ format_overrides :
29
+ - goos : windows
30
+ format : zip
31
+ files :
32
+ - none*
33
+ checksum :
34
+ name_template : " checksums.txt"
You can’t perform that action at this time.
0 commit comments