Skip to content

Commit 728f5a0

Browse files
committed
goreleaser
1 parent 8f2609c commit 728f5a0

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-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+
3+
on:
4+
push:
5+
tags: ['v*']
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: stable
19+
- uses: goreleaser/goreleaser-action@v6
20+
with:
21+
args: release --clean
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
builds:
4+
- env: [CGO_ENABLED=0]
5+
goos: [linux, darwin]
6+
goarch: [amd64, arm64]
7+
8+
archives:
9+
- formats: [tar.gz]
10+
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
11+
12+
changelog:
13+
sort: asc
14+
filters:
15+
exclude: ['^docs:', '^test:']

0 commit comments

Comments
 (0)