Commit 5bca1e1 1 parent 64d0997 commit 5bca1e1 Copy full SHA for 5bca1e1
File tree 1 file changed +16
-9
lines changed
1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -43,21 +43,28 @@ jobs:
43
43
with :
44
44
go-version : " ^1.22.1"
45
45
46
- # This linux dependency is required for the clipboard package
47
- - name : Install X11 Dev dependency
48
- if : matrix.goos == 'linux'
49
- run : |
50
- sudo apt-get update
51
- sudo apt install libx11-dev
52
-
53
46
- name : Generate Version Files
54
47
run : |
55
48
go generate ./internal/cmd/version
56
49
57
- - uses : wangyoucao577/go-release-action@v1
50
+ - name : Release for Linux
51
+ uses : wangyoucao577/go-release-action@v1
52
+ if : matrix.goos == 'linux'
53
+ with :
54
+ github_token : ${{ secrets.GITHUB_TOKEN }}
55
+ goos : ${{ matrix.goos }}
56
+ goarch : ${{ matrix.goarch }}
57
+ goversion : " 1.22.1"
58
+ extra_files : LICENSE README.md
59
+ # This linux dependency is required for the clipboard package
60
+ pre_command : " apt-get update && apt-get -y install libx11-dev"
61
+
62
+ - name : Release for MacOS
63
+ uses : wangyoucao577/go-release-action@v1
64
+ if : matrix.goos == 'darwin'
58
65
with :
59
66
github_token : ${{ secrets.GITHUB_TOKEN }}
60
67
goos : ${{ matrix.goos }}
61
68
goarch : ${{ matrix.goarch }}
62
69
goversion : " 1.22.1"
63
- extra_files : LICENSE README.md
70
+ extra_files : LICENSE README.md
You can’t perform that action at this time.
0 commit comments