Skip to content

Commit 8d06390

Browse files
pararangMuhammad Ikhsan
andauthored
ci: add goreleaser (#19)
Co-authored-by: Muhammad Ikhsan <muhammad.ikhsan@efishery.com>
1 parent 95479db commit 8d06390

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/goreleaser.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: goreleaser
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
jobs:
8+
goreleaser:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.17
19+
- name: Run GoReleaser
20+
uses: goreleaser/goreleaser-action@v2
21+
with:
22+
# either 'goreleaser' (default) or 'goreleaser-pro'
23+
distribution: goreleaser
24+
version: latest
25+
args: release --rm-dist
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
29+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 commit comments

Comments
 (0)