From 5593e30470ae5315b6739d62cae3d2740d0ad959 Mon Sep 17 00:00:00 2001 From: Darren Kelly Date: Wed, 12 Jun 2024 10:54:09 +0100 Subject: [PATCH] fix: remove windows / linux arm --- .github/workflows/on-release.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/on-release.yaml b/.github/workflows/on-release.yaml index 9be624b..d08e2c7 100644 --- a/.github/workflows/on-release.yaml +++ b/.github/workflows/on-release.yaml @@ -27,15 +27,9 @@ jobs: - os: ubuntu-latest goos: linux goarch: amd64 - - os: ubuntu-latest - goos: linux - goarch: arm64 - os: windows-latest goos: windows goarch: amd64 - - os: windows-latest - goos: windows - goarch: arm64 runs-on: ${{ matrix.os }} steps: - name: Checkout code @@ -51,13 +45,13 @@ jobs: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} run: | - go build -v -o networkHub-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/main.go + go build -v -o networkHub-${{ matrix.goos }}-${{ matrix.goarch }}${{ runner.os == 'Windows' && '.exe' || '' }} ./cmd/main.go - name: Upload Executable uses: xresloader/upload-to-github-release@v1.6.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref_name || inputs.tag }} + tag_name: ${{ inputs.tag || github.ref_name }} file: networkHub-${{ matrix.goos }}-${{ matrix.goarch }}${{ runner.os == 'Windows' && '.exe' || '' }} overwrite: true