diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a05182d..c6fa788 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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