diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9de701..168791f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: stable + go-version-file: go.mod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3d29ca9..2212435 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -7,6 +7,10 @@ before: builds: - env: - CGO_ENABLED=0 + flags: + - -trimpath + ldflags: + - -s -w -X main.version={{ .Version }} goos: - linux - windows