Add goreleaser workflow

This commit is contained in:
John Harker 2020-06-07 19:04:07 +01:00 committed by GitHub
parent a8c5baa247
commit 9fafb7a6f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

29
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: goreleaser
on:
pull_request:
push:
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}