1
0

ci: use goreleaser in build workflow

This commit is contained in:
Wiktor Zykubek 2024-12-27 14:44:39 +01:00
parent 4d5259d671
commit 383b3781c4
Signed by: wzykubek
GPG Key ID: 2221881F957D89B9

View File

@ -1,4 +1,4 @@
name: Go name: Build
on: on:
push: push:
@ -13,18 +13,19 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: '1.23.4' go-version: stable
- name: Build - name: Build
run: go build -v ./... uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: build --clean --snapshot
- name: Test - name: Upload binares as artifact
run: go test -v ./...
- name: Upload binary as artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: licensmith name: licensmith
path: licensmith path: dist/