File tree 2 files changed +31
-16
lines changed
2 files changed +31
-16
lines changed Original file line number Diff line number Diff line change 24
24
key : go-mod-sources-v1-{{ checksum "go.sum" }}
25
25
paths :
26
26
- " ~/go/pkg/mod"
27
- release :
28
- docker :
29
- - image : goreleaser/goreleaser:v0.130
30
- steps :
31
- - checkout
32
- - run :
33
- name : Run goreleaser
34
- command : goreleaser
35
27
36
28
workflows :
37
29
version : 2.1
38
30
test :
39
31
jobs :
40
32
- test
41
- release :
42
- jobs :
43
- - release :
44
- filters :
45
- branches :
46
- ignore : /^.*/
47
- tags :
48
- only : /^v.*/
Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ goreleaser :
10
+ runs-on : macos-10.15
11
+ steps :
12
+ -
13
+ name : Checkout
14
+ uses : actions/checkout@v2
15
+ -
16
+ name : Unshallow
17
+ run : git fetch --prune --unshallow
18
+ -
19
+ name : Set up Go
20
+ uses : actions/setup-go@v1
21
+ with :
22
+ go-version : 1.14.x
23
+ -
24
+ name : Run GoReleaser
25
+ uses : goreleaser/goreleaser-action@v1
26
+ if : startsWith(github.ref, 'refs/tags/')
27
+ with :
28
+ version : latest
29
+ args : release --rm-dist
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments