Adding goreleaser

This commit is contained in:
Joseph Hanson 2023-09-29 14:31:26 -05:00
parent 9df7fc7ed9
commit 03bab9dbac

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

@ -0,0 +1,31 @@
name: goreleaser
on:
pull_request:
push:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}