From 383b3781c429fb005a4824cf5a81ef988bfea8b2 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Fri, 27 Dec 2024 14:44:39 +0100 Subject: [PATCH] ci: use goreleaser in build workflow --- .github/workflows/go.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 77e64de..2d5d666 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -1,4 +1,4 @@ -name: Go +name: Build on: push: @@ -13,18 +13,19 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.23.4' + go-version: stable - name: Build - run: go build -v ./... + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: build --clean --snapshot - - name: Test - run: go test -v ./... - - - name: Upload binary as artifact + - name: Upload binares as artifact uses: actions/upload-artifact@v3 with: name: licensmith - path: licensmith + path: dist/