[skip ci] actions: add goreleaser

This commit is contained in:
Marko Man 2022-10-04 01:44:49 +02:00
parent 0836f2d6ae
commit 13dc45aab3
2 changed files with 42 additions and 0 deletions

34
.github/workflows/goreleaser.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: goreleaser
on:
create:
tags:
- '*'
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

8
.goreleaser.yml Normal file
View file

@ -0,0 +1,8 @@
builds:
-
goos:
- freebsd
- windows
- linux
- darwin
- openbsd