diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml new file mode 100644 index 00000000..e5c94ae3 --- /dev/null +++ b/.github/workflows/release-binaries.yml @@ -0,0 +1,41 @@ +name: Release +run-name: "${{ github.ref_name }}: Release" + +on: + release: + types: + - published + +env: + go-version: 1.18 + +jobs: + releases-matrix: + name: Release Go Binaries + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + goos: + - linux + - darwin + goarch: + - "386" + - amd64 + - arm64 + exclude: + - goarch: "386" + goos: darwin + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Release binaries + uses: wangyoucao577/go-release-action@v1 + with: + binary_name: kubitect + extra_files: LICENSE + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: ${{ env.go-version }} + github_token: ${{ github.token }} diff --git a/.github/workflows/release-cli-binaries.yml b/.github/workflows/release-cli-binaries.yml deleted file mode 100644 index 2a2ff7d6..00000000 --- a/.github/workflows/release-cli-binaries.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: cli release - -on: - release: - types: [ published ] - -env: - CLI_PATH: . - -jobs: - releases-matrix: - name: Release Go Binary - runs-on: ubuntu-latest - strategy: - matrix: - goos: [ linux, darwin ] - goarch: [ "386", amd64, arm64 ] - exclude: - - goarch: "386" - goos: darwin - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Release binaries - uses: wangyoucao577/go-release-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: ${{ matrix.goos }} - goarch: ${{ matrix.goarch }} - goversion: 1.18 - binary_name: "kubitect" - project_path: ${{ env.CLI_PATH }} - extra_files: LICENSE