Feat - implemented goreleaser for releases (#117)

Implemented goreleaser for releasing the code to github.

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
Naveen 2021-01-04 08:36:56 -05:00 committed by GitHub
parent f77da7783b
commit b216a1e494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
.github/workflows/goreleaser.yaml vendored Normal file
View File

@ -0,0 +1,29 @@
name: goreleaser
on:
push:
tags:
- "*" # triggers only if push new tag version, like `0.8.4` or else
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}