Skip to content

Commit 98b8cfb

Browse files
Armin BecherArmin Becher
Armin Becher
authored and
Armin Becher
committed
build: split test and release pipeline
1 parent dce96a5 commit 98b8cfb

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/main.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ jobs:
3434
with:
3535
version: v1.54
3636
args: --tests=false --timeout=10m
37-
test-and-release:
37+
test:
3838
runs-on: ubuntu-latest
39-
needs: [check-links]
4039
steps:
4140
- name: Checkout
4241
uses: actions/checkout@v3
@@ -46,9 +45,19 @@ jobs:
4645
go-version: "1.21"
4746
- name: Test
4847
run: go test ./...
48+
release:
49+
runs-on: ubuntu-latest
50+
needs: [check-links, test]
51+
if: startsWith(github.ref, 'refs/tags/')
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v3
55+
- name: Set up Go
56+
uses: actions/setup-go@v4
57+
with:
58+
go-version: "1.21"
4959
- name: Run GoReleaser
5060
uses: goreleaser/goreleaser-action@v2
51-
if: startsWith(github.ref, 'refs/tags/')
5261
with:
5362
version: latest
5463
args: release --rm-dist

0 commit comments

Comments
 (0)