File tree 2 files changed +47
-2
lines changed
2 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Test and build Go
1
+ name : Unit tests
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- master
7
+ paths :
8
+ - ' **.go'
9
+ - ' go.**'
10
+ - .github/workflows/build.yaml
7
11
pull_request :
12
+ paths :
13
+ - ' **.go'
14
+ - ' go.**'
15
+ - .github/workflows/build.yaml
8
16
9
17
jobs :
10
18
test :
39
47
- name : Check out
40
48
uses : actions/checkout@v4
41
49
42
- - uses : wangyoucao577/go-release-action@v1
50
+ - name : Build latest
51
+ uses : wangyoucao577/go-release-action@v1
43
52
with :
44
53
github_token : ${{ secrets.GITHUB_TOKEN }}
45
54
goos : ${{ matrix.os }}
Original file line number Diff line number Diff line change
1
+ name : Publish version
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " *"
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Create release
13
+ uses : softprops/action-gh-release@v1
14
+
15
+ publish :
16
+ runs-on : ubuntu-latest
17
+ needs : release
18
+ strategy :
19
+ matrix :
20
+ os : [ linux, darwin ]
21
+ arch : [ amd64, arm64 ]
22
+
23
+ steps :
24
+ - name : Check out
25
+ uses : actions/checkout@v4
26
+
27
+ - name : Publish binaries
28
+ uses : wangyoucao577/go-release-action@v1
29
+ with :
30
+ github_token : ${{ secrets.GITHUB_TOKEN }}
31
+ goos : ${{ matrix.os }}
32
+ goarch : ${{ matrix.arch }}
33
+ release_tag : ${{ github.ref_name }}
34
+ asset_name : gobbler-${{ matrix.os }}-${{ matrix.arch }}
35
+ overwrite : true
36
+ compress_assets : false
You can’t perform that action at this time.
0 commit comments