@@ -18,15 +18,15 @@ jobs:
18
18
19
19
- name : Extract version
20
20
id : get_version
21
- run : echo ::set-output name= VERSION:: ${GITHUB_REF#refs/tags/}
21
+ run : echo " VERSION= ${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
22
22
23
23
- name : Set up Go 1.x
24
- uses : actions/setup-go@v2
24
+ uses : actions/setup-go@v5
25
25
with :
26
- go-version : 1.20.1
26
+ go-version : 1.21
27
27
28
28
- name : Check out code into the Go module directory
29
- uses : actions/checkout@v2
29
+ uses : actions/checkout@v4
30
30
31
31
- name : Get dependencies
32
32
run : go mod download
35
35
run : go build -o linux-main-${{ steps.get_version.outputs.VERSION }}
36
36
37
37
- name : Upload artifact
38
- uses : actions/upload-artifact@v2
38
+ uses : actions/upload-artifact@v4
39
39
with :
40
40
name : linux-main-${{ steps.get_version.outputs.VERSION }}
41
41
path : ./linux-main-${{ steps.get_version.outputs.VERSION }}
@@ -47,15 +47,16 @@ jobs:
47
47
48
48
- name : Extract version
49
49
id : get_version
50
- run : echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
50
+ shell : bash
51
+ run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
51
52
52
53
- name : Check out code
53
- uses : actions/checkout@v2
54
+ uses : actions/checkout@v4
54
55
55
56
- name : Set up Go
56
- uses : actions/setup-go@v2
57
+ uses : actions/setup-go@v5
57
58
with :
58
- go-version : 1.20.1
59
+ go-version : 1.21
59
60
60
61
- name : Get dependencies
61
62
run : go mod download
64
65
run : go build -o win-main-${{ steps.get_version.outputs.VERSION }}.exe
65
66
66
67
- name : Upload artifact
67
- uses : actions/upload-artifact@v2
68
+ uses : actions/upload-artifact@v4
68
69
with :
69
70
name : win-main-${{ steps.get_version.outputs.VERSION }}.exe
70
71
path : ./win-main-${{ steps.get_version.outputs.VERSION }}.exe
@@ -76,15 +77,16 @@ jobs:
76
77
77
78
- name : Extract version
78
79
id : get_version
79
- run : echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
80
+ shell : bash
81
+ run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
80
82
81
83
- name : Check out code
82
- uses : actions/checkout@v2
84
+ uses : actions/checkout@v4
83
85
84
86
- name : Set up Go
85
- uses : actions/setup-go@v2
87
+ uses : actions/setup-go@v5
86
88
with :
87
- go-version : 1.20.1
89
+ go-version : 1.21
88
90
89
91
- name : Get dependencies
90
92
run : go mod download
93
95
run : go build -o mac-main-${{ steps.get_version.outputs.VERSION }}
94
96
95
97
- name : Upload artifact
96
- uses : actions/upload-artifact@v2
98
+ uses : actions/upload-artifact@v4
97
99
with :
98
100
name : mac-main-${{ steps.get_version.outputs.VERSION }}
99
101
path : ./mac-main-${{ steps.get_version.outputs.VERSION }}
0 commit comments