Skip to content

Commit 46dec14

Browse files
authored
Merge pull request #18 from NETWAYS/gh/release
Add goreleaser in GH actions
2 parents 328f6d1 + b2f2f43 commit 46dec14

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ jobs:
2727

2828
- name: Build
2929
run: go build -v .
30+
31+
- name: Run goreleaser in release mode
32+
if: success() && startsWith(github.ref, 'refs/tags/v')
33+
uses: goreleaser/goreleaser-action@v7
34+
with:
35+
version: latest
36+
args: release --clean
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)