ci: use goreleaser in build workflow
This commit is contained in:
parent
4d5259d671
commit
383b3781c4
19
.github/workflows/go.yaml
vendored
19
.github/workflows/go.yaml
vendored
@ -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/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user