Skip to content

Commit

Permalink
build: split test and release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Becher authored and Armin Becher committed Jan 4, 2024
1 parent dce96a5 commit 98b8cfb
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ jobs:
with:
version: v1.54
args: --tests=false --timeout=10m
test-and-release:
test:
runs-on: ubuntu-latest
needs: [check-links]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -46,9 +45,19 @@ jobs:
go-version: "1.21"
- name: Test
run: go test ./...
release:
runs-on: ubuntu-latest
needs: [check-links, test]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
Expand Down

0 comments on commit 98b8cfb

Please sign in to comment.