chore(CI/CD): add go version release flow (#3159)

* chore(CI/CD): add go version release flow

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* chore: bump to v1.8.0

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* chore: update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2022-05-28 15:23:00 +08:00
committed by GitHub
parent 4b68a5f12a
commit 60e24d5690
3 changed files with 92 additions and 1 deletions

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

@ -0,0 +1,34 @@
name: Goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
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@v2
with:
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}