Skip to content

Commit c629675

Browse files
committed
.github: add release workflow
1 parent 1e97078 commit c629675

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/cache@v2
13+
with:
14+
path: ~/go/pkg/mod
15+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
16+
restore-keys: |
17+
${{ runner.os }}-go-
18+
-
19+
name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
-
24+
name: Set up Go
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: 1.14.4
28+
-
29+
name: Run GoReleaser
30+
uses: goreleaser/goreleaser-action@v2
31+
with:
32+
version: latest
33+
args: release --rm-dist
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)