From 04875c8b5e0eda944898dc831f4fff097459ebbf Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Wed, 14 Sep 2022 08:17:35 -0400 Subject: [PATCH] add darwin-nogui to release assets --- .github/workflows/buildandrelease.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildandrelease.yml b/.github/workflows/buildandrelease.yml index 230c1775..7f001eaa 100644 --- a/.github/workflows/buildandrelease.yml +++ b/.github/workflows/buildandrelease.yml @@ -402,6 +402,7 @@ jobs: cd netclient env GOOS=darwin GOARCH=amd64 go build -tags=gui -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient-darwin/netclient . env CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -tags=gui -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient-darwin-arm64/netclient main.go + env GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient-darwin/netclient-darwin-nogui . - name: Upload darwin-amd64 to Release uses: svenstaro/upload-release-action@v2 with: @@ -421,7 +422,17 @@ jobs: overwrite: true prerelease: true asset_name: netclient-darwin-arm64 - + + - name: Upload darwin-nogui to Release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: netclient/build/netclient-darwin-nogui/netclient + tag: ${{ env.NETMAKER_VERSION }} + overwrite: true + prerelease: true + asset_name: netclient-darwin-nogui + netclient-windows: runs-on: windows-latest needs: version