feat: Automate releases with goreleaser (#404)

This commit is contained in:
Kyle Carberry
2022-03-07 19:50:37 -06:00
committed by GitHub
parent e1205a033f
commit 3eb6fb75d6
18 changed files with 126 additions and 115 deletions
+4
View File
@@ -323,6 +323,10 @@ jobs:
with:
node-version: "14"
- uses: goreleaser/goreleaser-action@v2
with:
install-only: true
- uses: actions/cache@v2
with:
# Go mod cache, Linux build cache, Mac build cache, Windows build cache
+23
View File
@@ -0,0 +1,23 @@
name: release
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: "^1.17"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.9.1
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}