Skip to content

Commit 5bca1e1

Browse files
committed
refactor release job order
1 parent 64d0997 commit 5bca1e1

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/release.yaml

+16-9
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,28 @@ jobs:
4343
with:
4444
go-version: "^1.22.1"
4545

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-
5346
- name: Generate Version Files
5447
run: |
5548
go generate ./internal/cmd/version
5649
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'
5865
with:
5966
github_token: ${{ secrets.GITHUB_TOKEN }}
6067
goos: ${{ matrix.goos }}
6168
goarch: ${{ matrix.goarch }}
6269
goversion: "1.22.1"
63-
extra_files: LICENSE README.md
70+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)