2021-06-15 16:01:56 +00:00
|
|
|
name: 🎉 Release Binary
|
2020-06-01 19:34:57 +00:00
|
|
|
on:
|
|
|
|
create:
|
|
|
|
tags:
|
|
|
|
- v*
|
2021-06-15 16:01:56 +00:00
|
|
|
workflow_dispatch:
|
2020-06-01 19:34:57 +00:00
|
|
|
|
2020-07-13 17:34:08 +00:00
|
|
|
jobs:
|
|
|
|
release:
|
2020-06-01 19:34:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-07-13 17:34:08 +00:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: "Check out code"
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: "Set up Go"
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-09-01 10:10:53 +00:00
|
|
|
go-version: 1.17
|
2020-07-13 17:34:08 +00:00
|
|
|
-
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
name: "Create release on GitHub"
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
with:
|
|
|
|
args: "release --rm-dist"
|
2021-03-14 07:07:41 +00:00
|
|
|
version: latest
|
2021-06-15 16:01:56 +00:00
|
|
|
workdir: v2/
|