Skip to content

Commit 2a97463

Browse files
committed
ci: add release workflow
1 parent 7fc213d commit 2a97463

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v[0-9]+.[0-9]+.[0-9]+
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-go@v3
13+
with:
14+
go-version: 1.18.x
15+
- run: go mod tidy
16+
- name: Run GoReleaser
17+
uses: goreleaser/goreleaser-action@v2
18+
with:
19+
distribution: goreleaser
20+
version: latest
21+
args: release --rm-dist
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)