From 525d5fe27ab2625ec9f06283459539f4a404ff1c Mon Sep 17 00:00:00 2001 From: Valentinas Date: Thu, 11 Jun 2026 16:10:15 +0300 Subject: [PATCH] Fixing build to build binary --- .github/workflows/build-release.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index fb13873..67b53f5 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -14,6 +14,8 @@ jobs: steps: - name: Repo checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Bump version and push tag id: bump @@ -22,8 +24,18 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} release_branches: main - - name: Release tag - uses: ncipollo/release-action@v1 + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: 1.24.x + + - name: Run GoReleaser + if: steps.bump.outputs.new_tag != '' + uses: goreleaser/goreleaser-action@v6 with: - tag: ${{ steps.bump.outputs.new_tag }} - generateReleaseNotes: true + distribution: goreleaser + version: "~> v2" + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GORELEASER_CURRENT_TAG: ${{ steps.bump.outputs.new_tag }}