Skip to content

Commit 4e43fc8

Browse files
committed
chore(ci): add goreleaser
1 parent 91fcd23 commit 4e43fc8

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions: write-all
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0 # necessary for the goreleaser changelog gen
16+
- name: Release
17+
uses: goreleaser/goreleaser-action@v4
18+
with:
19+
distribution: goreleaser
20+
version: v1.19.2
21+
args: --clean
22+
env:
23+
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
dist/

.goreleaser.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
builds:
2+
- skip: true
3+
4+
changelog:
5+
sort: asc
6+
use: github
7+
filters:
8+
exclude:
9+
- "^test:"
10+
- "^chore"
11+
- "merge conflict"
12+
- Merge pull request
13+
- Merge remote-tracking branch
14+
- Merge branch
15+
- go mod tidy
16+
groups:
17+
- title: Dependency updates
18+
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
19+
order: 300
20+
- title: "New Features"
21+
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
22+
order: 100
23+
- title: "Bug fixes"
24+
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
25+
order: 200
26+
- title: "Build process updates"
27+
regexp: ^.*?build(\([[:word:]]+\))??!?:.+$
28+
order: 400
29+
- title: Other work
30+
order: 9999
31+
32+
release:
33+
footer: |
34+
**Full Changelog**: https://github.com/Kong/go-pdk/compare/{{ .PreviousTag }}...{{ .Tag }}
35+
github:
36+
owner: Kong
37+
name: go-pdk
38+
target_commitish: "{{ .Commit }}"
39+

0 commit comments

Comments
 (0)