File tree 1 file changed +23
-24
lines changed
1 file changed +23
-24
lines changed Original file line number Diff line number Diff line change 1
- name : Go
2
- on : [push]
3
- jobs :
1
+ name : goreleaser
2
+
3
+ on :
4
+ create :
5
+ tags :
6
+ - v*
4
7
5
- build :
6
- name : Build
8
+ jobs :
9
+ goreleaser :
7
10
runs-on : ubuntu-latest
8
11
steps :
12
+ -
13
+ name : Checkout
14
+ uses : actions/checkout@v1
15
+ -
16
+ name : Set up Go
17
+ uses : actions/setup-go@v1
18
+ with :
19
+ go-version : 1.13.x
9
20
10
- - name : Set up Go 1.13
11
- uses : actions/setup-go@v1
12
- with :
13
- go-version : 1.13
14
- id : go
15
-
16
- - name : Check out code into the Go module directory
17
- uses : actions/checkout@v1
18
-
19
- - name : Get dependencies
20
- run : |
21
- go get -v -t -d ./...
22
- if [ -f Gopkg.toml ]; then
23
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24
- dep ensure
25
- fi
26
-
27
- - name : Build
28
- run : go build -v .
21
+ - name : Run Server GoReleaser
22
+ uses : goreleaser/goreleaser-action@v1
23
+ with :
24
+ version : latest
25
+ args : release --rm-dist
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments