File tree Expand file tree Collapse file tree 3 files changed +48
-5
lines changed Expand file tree Collapse file tree 3 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 8
8
name : Run golangci-lint
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v3
11
+ - uses : actions/checkout@v4
12
12
- uses : actions/setup-go@v4
13
13
with :
14
14
go-version-file : " go.mod"
15
- - run : go build -v .
16
15
- uses : golangci/golangci-lint-action@v3
17
16
tidy :
18
17
name : Tidy go modules
Original file line number Diff line number Diff line change
1
+ name : Release (build, publish)
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ permissions :
9
+ contents : write
10
+ id-token : write
11
+
12
+ jobs :
13
+ upload-build-to-release :
14
+ strategy :
15
+ matrix :
16
+ include :
17
+ - os : " linux"
18
+ arch : " amd64"
19
+ filename : " handles-server-linux"
20
+ - os : " darwin"
21
+ arch : " amd64"
22
+ filename : " handles-server-macos"
23
+ - os : " windows"
24
+ arch : " amd64"
25
+ filename : " handles-server.exe"
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ - uses : actions/setup-go@v4
30
+ with :
31
+ go-version-file : " go.mod"
32
+ - name : Build
33
+ env :
34
+ GOOS : " ${{ matrix.os }}"
35
+ GOARCH : " ${{ matrix.arch }}"
36
+ run : go build -ldflags="-s -w" -o ${{ matrix.filename }}
37
+ - name : Upload binaries to release
38
+ uses : svenstaro/upload-release-action@v2
39
+ with :
40
+ file : " ./handles-server*"
41
+ file_glob : true
42
+ overwrite : true
43
+ make_latest : false
44
+ draft : true
Original file line number Diff line number Diff line change 7
7
test :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v3
10
+ - uses : actions/checkout@v4
11
11
- uses : actions/setup-go@v4
12
12
with :
13
13
go-version-file : " go.mod"
14
- - name : Build
15
- run : " go build -v ."
16
14
- name : Test
17
15
run : " go test -v ."
16
+ - name : Build
17
+ run : " go build -v ."
You can’t perform that action at this time.
0 commit comments