Skip to content

Commit d8d0980

Browse files
authored
add workflow (#11)
1 parent 179e25d commit d8d0980

File tree

1 file changed

+34
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)