Skip to content

Commit 83c63f7

Browse files
committed
feat: add goreleaser for changelog
Signed-off-by: Sidharth Jawale <[email protected]>
1 parent 8577bc7 commit 83c63f7

File tree

5 files changed

+124
-1
lines changed

5 files changed

+124
-1
lines changed

.gitea/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: goreleaser
3+
4+
"on":
5+
push:
6+
tags:
7+
- "v*"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-22.04-htzhel1-ax42-a
15+
steps:
16+
- name: Checkout
17+
uses: https://gitea.obmondo.com/Obmondo/[email protected]
18+
with:
19+
# This is required for the changelog to work correctly.
20+
fetch-depth: 0
21+
- name: Set up Go
22+
uses: https://gitea.obmondo.com/Obmondo/[email protected]
23+
with:
24+
go-version-file: go.mod
25+
cache-dependency-path: go.sum
26+
- name: Run GoReleaser
27+
uses: https://gitea.obmondo.com/Obmondo/[email protected]
28+
with:
29+
version: "v2.12.7"
30+
args: release --clean -f .goreleaser-gitea.yaml
31+
env:
32+
GITEA_TOKEN: ${{ secrets.GORELEASER_TOKEN }}

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: goreleaser
3+
4+
"on":
5+
push:
6+
tags:
7+
- "v*"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/[email protected]
18+
with:
19+
# This is required for the changelog to work correctly.
20+
fetch-depth: 0
21+
- name: Set up Go
22+
uses: actions/[email protected]
23+
- name: Run GoReleaser
24+
uses: goreleaser/[email protected]
25+
with:
26+
version: "v2.12.7"
27+
args: release --clean -f .goreleaser-github.yaml
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser-gitea.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
version: 2
3+
4+
release:
5+
footer: >-
6+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
7+
8+
changelog:
9+
use: gitea
10+
sort: asc
11+
format: "[{{ .SHA }}](https://gitea.obmondo.com/EnableIT/linuxaid/commit/{{ .SHA }}) {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}"
12+
abbrev: 7
13+
filters:
14+
exclude:
15+
- init
16+
- Merge pull request
17+
- Merge remote-tracking branch
18+
- Merge branch
19+
# Group commits messages by given regex and title.
20+
groups:
21+
- title: 💫 Features
22+
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
23+
order: 0
24+
- title: 🐛 Bug fixes
25+
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
26+
order: 1
27+
- title: 🥴 Others
28+
order: 999
29+
30+
gitea_urls:
31+
api: https://gitea.obmondo.com/api/v1
32+
download: https://gitea.obmondo.com
33+
skip_tls_verify: false

.goreleaser-github.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
version: 2
3+
4+
release:
5+
footer: >-
6+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
7+
8+
changelog:
9+
use: github
10+
sort: asc
11+
format: "[{{ .SHA }}](https://github.com/obmondo/linuxaid/commit/{{ .SHA }}) {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}"
12+
abbrev: 7
13+
filters:
14+
exclude:
15+
- init
16+
- Merge pull request
17+
- Merge remote-tracking branch
18+
- Merge branch
19+
# Group commits messages by given regex and title.
20+
groups:
21+
- title: 💫 Features
22+
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
23+
order: 0
24+
- title: 🐛 Bug fixes
25+
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
26+
order: 1
27+
- title: 🥴 Others
28+
order: 999

.yamllint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
extends: default
43

54
ignore: |
@@ -18,6 +17,8 @@ rules:
1817
indentation:
1918
ignore: |
2019
modules/include/**
20+
truthy:
21+
level: warning
2122
# Local Variables:
2223
# mode: yaml
2324
# End:

0 commit comments

Comments
 (0)