Skip to content

Commit 1b6b60c

Browse files
Try github action to build a release
1 parent 2a76a04 commit 1b6b60c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
9+
jobs:
10+
goreleaser:
11+
runs-on: ubuntu-latest
12+
steps:
13+
-
14+
name: Checkout
15+
uses: actions/checkout@v2
16+
-
17+
name: Unshallow
18+
run: git fetch --prune --unshallow
19+
-
20+
name: Set up Go
21+
uses: actions/setup-go@v1
22+
with:
23+
go-version: 1.14.x
24+
-
25+
name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v1
27+
with:
28+
version: latest
29+
args: release --rm-dist
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+

0 commit comments

Comments
 (0)