1
0

ci: add build workflow

This commit is contained in:
Wiktor Zykubek 2024-12-27 06:32:50 +01:00
parent bde588fd8e
commit 1a1dc7aec8
Signed by: wzykubek
GPG Key ID: 2221881F957D89B9

31
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Build
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: build --clean --snapshot
- name: Upload binares as artifact
uses: actions/upload-artifact@v3
with:
name: licensmith
path: dist/