Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
airycanon authored Apr 10, 2024
1 parent 1c37111 commit a9f15c4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ on:
tags:
- v*
jobs:
release:
strategy:
matrix:
os: ["linux","windows","darwin"]
arch: ["amd64","arm64"]
name: Release
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -19,8 +14,16 @@ jobs:
- run: ./test.sh
- run: go mod download
- run: go test -v ./...
- run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o release/crd-ref-docs-${{ matrix.os }}-${{ matrix.arch }} -v .

release:
needs: test
strategy:
matrix:
os: ["linux","windows","darwin"]
arch: ["amd64","arm64"]
name: Release
runs-on: ubuntu-latest
steps:
- run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o release/crd-ref-docs-${{ matrix.os }}-${{ matrix.arch }} -v .

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit a9f15c4

Please sign in to comment.