Skip to content

Commit 32f0445

Browse files
committed
added goreleaser configs for notes generation and pre-release creation
1 parent e332175 commit 32f0445

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Create prerelease on tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-create-prerelease:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout (full history)
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: stable
23+
- name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v6
25+
with:
26+
version: latest
27+
args: release --clean
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: 2
2+
3+
builds:
4+
- skip: true
5+
6+
archives: []
7+
8+
changelog:
9+
use: github
10+
sort: asc
11+
groups:
12+
- title: "Features"
13+
regexp: "(?i)(feat|feature|\\[feature\\]|\\[feat\\]|\\bFEATURE\\b)"
14+
order: 1
15+
- title: "Bug Fixes"
16+
regexp: "(?i)(fix|bugfix|\\[bugfix\\]|\\[BUGFIX\\]|\\bBUGFIX\\b)"
17+
order: 2
18+
- title: "Documentation"
19+
regexp: "(?i)(docs?|documentation|\\[docs?\\])"
20+
order: 3
21+
- title: "Dependencies"
22+
regexp: "(?i)(build\\(deps\\)|bump|dependencies)"
23+
order: 4
24+
- title: "Maintenance"
25+
regexp: "(?i)(chore|refactor|\\[chore\\])"
26+
order: 5
27+
- title: "Other Changes"
28+
regexp: ".*"
29+
order: 99
30+
31+
filters:
32+
exclude:
33+
- '^docs:'
34+
- '^test:'
35+
- 'merge conflict'
36+
- 'Merge branch'
37+
- 'Merge pull request'
38+
39+
release:
40+
github:
41+
owner: Rishab87
42+
name: kube-state-metrics
43+
44+
prerelease: "true"
45+
skip_upload: true
46+
47+
header: |
48+
## {{ .Tag }} / {{ .Now.Format "2006-01-02" }}
49+
50+
## Note
51+
- This release builds with Go `v1.24.6`
52+
- This release builds with `k8s.io/client-go`: `v0.33.4`
53+
- This release is the last release that has endpoint metrics enabled by default. In the next release we will enable endpointslices metrics and disable endpoint metrics by default, since the endpoint resources are deprecated. You can still alter this behaviour in kube-state-metrics' config.
54+
55+
footer: |
56+
**Full Changelog**: {{ .GitURL }}/compare/{{ .PreviousTag }}...{{ .Tag }}
57+
58+
mode: replace

0 commit comments

Comments
 (0)