Skip to content

Commit 2b7f193

Browse files
committed
ci: workflow file for releases
1 parent f334853 commit 2b7f193

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yaml

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

0 commit comments

Comments
 (0)