Skip to content

Commit 8c7dc63

Browse files
committed
release: add release workflow
1 parent b6ef980 commit 8c7dc63

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)