2019-09-15 20:50:52 +08:00
|
|
|
name: Release
|
|
|
|
on:
|
2020-08-13 21:09:54 +08:00
|
|
|
push:
|
2019-09-15 20:50:52 +08:00
|
|
|
tags:
|
2020-04-03 22:54:13 +08:00
|
|
|
- v*
|
2019-09-15 20:50:52 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release on GitHub
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-08-13 21:09:54 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Set up Go
|
2021-02-06 00:26:58 +08:00
|
|
|
uses: actions/setup-go@v2
|
2020-04-03 22:54:13 +08:00
|
|
|
with:
|
2021-02-06 00:44:03 +08:00
|
|
|
go-version: 1.16.x
|
2020-09-13 23:28:01 +08:00
|
|
|
- name: Go Env
|
|
|
|
run: go env
|
2020-04-03 22:54:13 +08:00
|
|
|
- name: Run GoReleaser
|
2020-08-13 21:09:54 +08:00
|
|
|
uses: goreleaser/goreleaser-action@v2
|
2020-04-03 22:54:13 +08:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|