From 2038894c1c7d99807f0cf724c7a91cb7cbc8be67 Mon Sep 17 00:00:00 2001 From: David Gamba Date: Sat, 11 Mar 2023 22:27:03 -0700 Subject: [PATCH] actions: Update publish matrix --- .github/workflows/publish.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 501c6ce..2202204 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,11 +34,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - include: - - {GOOS: linux, GOARCH: amd64} - - {GOOS: linux, GOARCH: arm64} - - {GOOS: darwin, GOARCH: amd64} - - {GOOS: darwin, GOARCH: arm64} + goos: [linux, darwin] + goarch: [amd64, arm64] tool: - cssh/cscp - cssh/cssh @@ -69,8 +66,8 @@ jobs: shell: bash env: CGO_ENABLED: 0 - GOOS: ${{ matrix.GOOS }} - GOARCH: ${{ matrix.GOARCH }} + GOOS: ${{ matrix.goos }} + GOARCH: ${{ matrix.goarch }} - name: Upload Release Asset id: upload-release-asset @@ -82,5 +79,5 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_path: ${{ matrix.tool }}/${{ steps.build.outputs.binary }} - asset_name: ${{ steps.build.outputs.binary }}.${{ matrix.GOOS }}.${{ matrix.GOARCH }} + asset_name: ${{ steps.build.outputs.binary }}.${{ matrix.goos }}.${{ matrix.goarch }} asset_content_type: application/octet-stream