Skip to content

Support multi arch release #4

Support multi arch release

Support multi arch release #4

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.22.x
- run: go mod download
- run: go test -v ./...
- run: ./test.sh
release:
needs: test
strategy:
matrix:
os: ["linux","windows","darwin"]
arch: ["amd64","arm64"]
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.22.x
- 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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/crd-ref-docs-${{ matrix.os }}-${{ matrix.arch }}
asset_name: crd-ref-docs-${{ matrix.os }}-${{ matrix.arch }}
tag: ${{ github.ref }}