gin/.github/workflows/goreleaser.yml
Bo-Yi Wu 60e24d5690
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>
2022-05-28 15:23:00 +08:00

35 lines
673 B
YAML

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 }}