Skip to content

Commit 1f2899d

Browse files
authored
Update go.yml
1 parent 3f12582 commit 1f2899d

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/go.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
types: [published]
66

77
jobs:
8-
setup:
9-
name: Setup
8+
build:
9+
name: Build & Test
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -32,21 +32,9 @@ jobs:
3232
- name: Install dependencies
3333
run: go mod tidy
3434

35-
test:
36-
name: Test
37-
runs-on: ubuntu-latest
38-
needs: setup
39-
40-
steps:
4135
- name: Run Go test
4236
run: go test ./... -v
43-
44-
build:
45-
name: Build
46-
runs-on: ubuntu-latest
47-
needs: test
48-
49-
steps:
37+
5038
- name: Build binaries
5139
run: |
5240
mkdir -p dist
@@ -67,6 +55,12 @@ jobs:
6755
runs-on: ubuntu-latest
6856

6957
steps:
58+
- name: Download build artifacts
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: go-binaries
62+
path: dist
63+
7064
- name: Attach binaries to release
7165
uses: softprops/action-gh-release@v2
7266
with:

0 commit comments

Comments
 (0)