Skip to content

Commit 1c9e733

Browse files
committed
add: add workflow for releasing binaries by goreleaser
1 parent eaf6eb3 commit 1c9e733

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflow/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: actions/setup-go@v3
19+
with:
20+
go-version-file: go.mod
21+
cache: true
22+
23+
- uses: goreleaser/goreleaser-action@v4
24+
with:
25+
args: release --rm-dist
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)