File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 5
5
workflow_dispatch :
6
6
inputs :
7
7
is_snapshot_release :
8
- description : " Release Snapshot? "
8
+ description : " Publish Release "
9
9
required : false
10
10
default : false
11
11
type : boolean
@@ -20,13 +20,11 @@ permissions:
20
20
contents : write
21
21
22
22
jobs :
23
- build :
23
+ test :
24
24
runs-on : ubuntu-latest
25
25
steps :
26
26
- name : Checkout source code
27
27
uses : actions/checkout@v3
28
- with :
29
- fetch-depth : 0 # Needed by goreleaser to browse history.
30
28
- name : Set up go
31
29
uses : actions/setup-go@v3
32
30
with :
41
39
needs : build
42
40
if : ${{ inputs.is_snapshot_release || github.event.schedule }}
43
41
steps :
42
+ - name : Checkout source code
43
+ uses : actions/checkout@v3
44
+ with :
45
+ fetch-depth : 0 # Needed by goreleaser to browse history.
46
+ - name : Set up go
47
+ uses : actions/setup-go@v3
48
+ with :
49
+ go-version-file : ./go.mod
50
+ cache : true
44
51
- name : Build snapshot with goreleaser
45
52
uses : goreleaser/goreleaser-action@v3
46
53
with :
68
75
# Only release when there's a tag for the release.
69
76
if : startsWith(github.ref, 'refs/tags/')
70
77
steps :
78
+ - name : Checkout source code
79
+ uses : actions/checkout@v3
80
+ with :
81
+ fetch-depth : 0 # Needed by goreleaser to browse history.
82
+ - name : Set up go
83
+ uses : actions/setup-go@v3
84
+ with :
85
+ go-version-file : ./go.mod
86
+ cache : false
71
87
- name : Release with goreleaser
72
88
uses : goreleaser/goreleaser-action@v3
73
89
with :
You can’t perform that action at this time.
0 commit comments