From 362fab0badbda71395a732f5b437070cc91f461b Mon Sep 17 00:00:00 2001 From: Ben Cromwell Date: Tue, 9 Sep 2025 17:19:07 +0100 Subject: [PATCH 1/3] chore: update goreleaser config --- .goreleaser.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7d3b691..24f1a27 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -39,9 +39,7 @@ archives: formats: [zip] changelog: - use: github - format: "{{.SHA}}: {{.Message}} (@{{.AuthorUsername}})" - sort: asc + use: git abbrev: -1 filters: # Commit messages matching the regexp listed here will be removed from @@ -49,9 +47,12 @@ changelog: # # Matches are performed against the first line of the commit message only. exclude: + - "^chore:" - "^docs:" + - "^refactor:" - "^test:" - typo + - "Merge pull request" # Group commits messages by given regex and title. # Order value defines the order of the groups. @@ -68,7 +69,7 @@ changelog: regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' order: 0 - title: "Bug fixes" - regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$' + regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' order: 1 - title: Others order: 999 From 9d57bb0796d367857265e4d73efafddc96c45044 Mon Sep 17 00:00:00 2001 From: Ben Cromwell Date: Tue, 9 Sep 2025 17:31:48 +0100 Subject: [PATCH 2/3] chore(CI): goreleaser --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c7b11ad --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: goreleaser + +on: + pull_request: + push: + tags: + - "v*" + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: "~> v2" + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c4ca43db1980b117987971ad63c255b78fc7ab66 Mon Sep 17 00:00:00 2001 From: Ben Cromwell Date: Tue, 9 Sep 2025 17:35:04 +0100 Subject: [PATCH 3/3] chore(CI): goreleaser should only run for tags --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7b11ad..60e07ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,6 @@ name: goreleaser on: - pull_request: push: tags: - "v*"