From 7a1b4579ff05b9edf7131b01a55b9358a8a3f4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Agostinho=20de=20Sousa?= Date: Fri, 14 Aug 2026 17:13:54 +0200 Subject: [PATCH] Correct output version --- .github/workflows/release.yml | 23 ++--------------------- Makefile | 1 - 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c79789..87bdb04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,26 +26,6 @@ jobs: name: linux-arm64 extension: "" - - goos: darwin - goarch: amd64 - name: macos-amd64 - extension: "" - - - goos: darwin - goarch: arm64 - name: macos-arm64 - extension: "" - - - goos: windows - goarch: amd64 - name: windows-amd64 - extension: ".exe" - - - goos: windows - goarch: arm64 - name: windows-arm64 - extension: ".exe" - steps: - name: Checkout uses: actions/checkout@v4 @@ -60,10 +40,11 @@ jobs: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 + VERSION: ${{ github.ref_name }} run: | mkdir -p dist go build \ - -ldflags="-X main.version=${{ github.ref_name }}" \ + -ldflags="-X main.version=${VERSION}" \ -o "dist/findbaseport-${{ matrix.name }}${{ matrix.extension }}" \ . diff --git a/Makefile b/Makefile index aa94335..ea9fa19 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ BINARY := findbaseport -VERSION := dev .PHONY: all fmt vet lint build clean