Skip to content

Commit 1c9fbf9

Browse files
committed
GitHub Actions: Add action to run GoReleaser on new tags
1 parent c068b05 commit 1c9fbf9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v1
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v1
17+
with:
18+
go-version: 1.13.x
19+
20+
- name: Run GoReleaser
21+
uses: goreleaser/goreleaser-action@v1
22+
with:
23+
version: latest
24+
args: release --rm-dist
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)