1
- name : Release Binaries
1
+ name : Release
2
2
3
3
on :
4
4
release :
@@ -9,69 +9,23 @@ permissions:
9
9
packages : write
10
10
11
11
jobs :
12
- release-linux-amd64 :
13
- name : release linux/amd64
12
+ goreleaser :
14
13
runs-on : ubuntu-latest
15
14
steps :
16
- - uses : actions/checkout@v2
17
- -
uses :
wangyoucao577/[email protected]
18
- with :
19
- github_token : ${{ secrets.GITHUB_TOKEN }}
20
- goos : linux
21
- goarch : amd64
22
- project_path : cmd/envsubst
23
- asset_name : envsubst-Linux-x86_64
24
- compress_assets : OFF
25
- release-linux-arm64 :
26
- name : release linux/arm64
27
- runs-on : ubuntu-latest
28
- steps :
29
- - uses : actions/checkout@v2
30
- -
uses :
wangyoucao577/[email protected]
31
- with :
32
- github_token : ${{ secrets.GITHUB_TOKEN }}
33
- goos : linux
34
- goarch : arm64
35
- project_path : cmd/envsubst
36
- asset_name : envsubst-Linux-arm64
37
- compress_assets : OFF
38
- release-darwin-amd64 :
39
- name : release darwin/amd64
40
- runs-on : ubuntu-latest
41
- steps :
42
- - uses : actions/checkout@v2
43
- -
uses :
wangyoucao577/[email protected]
44
- with :
45
- github_token : ${{ secrets.GITHUB_TOKEN }}
46
- goos : darwin
47
- goarch : amd64
48
- project_path : cmd/envsubst
49
- asset_name : envsubst-Darwin-x86_64
50
- compress_assets : OFF
51
- release-darwin-arm64 :
52
- name : release darwin/arm64
53
- runs-on : ubuntu-latest
54
- steps :
55
- - uses : actions/checkout@v2
56
- -
uses :
wangyoucao577/[email protected]
57
- with :
58
- github_token : ${{ secrets.GITHUB_TOKEN }}
59
- goos : darwin
60
- goarch : arm64
61
- project_path : cmd/envsubst
62
- asset_name : envsubst-Darwin-arm64
63
- compress_assets : OFF
64
- release-windows :
65
- name : release windows
66
- runs-on : ubuntu-latest
67
- steps :
68
- - uses : actions/checkout@v2
69
- -
uses :
wangyoucao577/[email protected]
70
- with :
71
- github_token : ${{ secrets.GITHUB_TOKEN }}
72
- goos : windows
73
- goarch : amd64
74
- project_path : cmd/envsubst
75
- binary_name : envsubst-windows # release fails if the binary name is the same as the asset name
76
- asset_name : envsubst
77
- compress_assets : OFF
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+
19
+ - uses : actions/setup-go@v5
20
+ with :
21
+ go-version-file : go.mod
22
+
23
+ -
uses :
ko-build/[email protected]
24
+
25
+ - uses : goreleaser/goreleaser-action@v6
26
+ with :
27
+ distribution : goreleaser
28
+ version : " ~> v2"
29
+ args : release --clean
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments