Skip to content

Commit b1bea39

Browse files
authored
Goreleaser v2 upgrade (#489)
* Upgrade goreleaser to v2.6.1
1 parent 158aec7 commit b1bea39

7 files changed

+29
-45
lines changed

.generate-changelog-delta.sh

-29
This file was deleted.

.github/workflows/main.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
GORELEASER_VERSION: 1.24.0
13+
GORELEASER_VERSION: 2.6.1
1414
GOLANGCI_LINT_VERSION: v1.63.4
1515
TPARSE_VERSION: v0.13.2
1616
BUILD_TAGS: 'sqlite_vtable sqlite_stat4 sqlite_fts5 sqlite_introspect sqlite_json sqlite_math_functions'
@@ -150,7 +150,7 @@ jobs:
150150
go-version-file: go.mod
151151

152152
- name: GoReleaser (build darwin binaries)
153-
uses: goreleaser/goreleaser-action@v5
153+
uses: goreleaser/goreleaser-action@v6
154154
with:
155155
distribution: goreleaser-pro
156156
version: ${{ env.GORELEASER_VERSION }}
@@ -181,7 +181,7 @@ jobs:
181181
go-version-file: go.mod
182182

183183
- name: GoReleaser (build linux-amd64 binaries)
184-
uses: goreleaser/goreleaser-action@v5
184+
uses: goreleaser/goreleaser-action@v6
185185
with:
186186
distribution: goreleaser-pro
187187
version: ${{ env.GORELEASER_VERSION }}
@@ -217,7 +217,7 @@ jobs:
217217
sudo apt install -y gcc-aarch64-linux-gnu
218218
219219
- name: GoReleaser (build linux-arm64 binaries)
220-
uses: goreleaser/goreleaser-action@v5
220+
uses: goreleaser/goreleaser-action@v6
221221
with:
222222
distribution: goreleaser-pro
223223
version: ${{ env.GORELEASER_VERSION }}
@@ -249,7 +249,7 @@ jobs:
249249
go-version-file: go.mod
250250

251251
- name: GoReleaser (build windows binaries)
252-
uses: goreleaser/goreleaser-action@v5
252+
uses: goreleaser/goreleaser-action@v6
253253
with:
254254
distribution: goreleaser-pro
255255
version: ${{ env.GORELEASER_VERSION }}
@@ -311,15 +311,13 @@ jobs:
311311
name: dist-windows
312312
path: dist-windows
313313

314-
- name: Generate CHANGELOG delta for Goreleaser to consume
315-
run: ./.generate-changelog-delta.sh > ./.CHANGELOG.delta.md
316314

317315
- name: GoReleaser (publish)
318-
uses: goreleaser/goreleaser-action@v5
316+
uses: goreleaser/goreleaser-action@v6
319317
with:
320318
distribution: goreleaser-pro
321319
version: ${{ env.GORELEASER_VERSION }}
322-
args: release --release-notes=./.CHANGELOG.delta.md -f .goreleaser.yml
320+
args: release -f .goreleaser.yml
323321
env:
324322
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
325323
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

.goreleaser-darwin.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
2+
version: 2
3+
14
before:
25
hooks:
36
- go mod tidy
@@ -28,4 +31,4 @@ builds:
2831
- sqlite_math_functions
2932

3033
archives:
31-
- format: binary
34+
- formats: [ binary ]

.goreleaser-linux-amd64.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
2+
version: 2
3+
14
before:
25
hooks:
36
- go mod tidy
@@ -32,4 +35,4 @@ builds:
3235
- sqlite_json
3336
- sqlite_math_functions
3437
archives:
35-
- format: binary
38+
- formats: [ binary ]

.goreleaser-linux-arm64.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
2+
version: 2
3+
14
before:
25
hooks:
36
- go mod tidy
@@ -34,4 +37,4 @@ builds:
3437
- sqlite_json
3538
- sqlite_math_functions
3639
archives:
37-
- format: binary
40+
- formats: [ binary ]

.goreleaser-windows.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
2+
version: 2
3+
14
before:
25
hooks:
36
- go mod tidy
@@ -26,4 +29,4 @@ builds:
2629
- sqlite_json
2730
- sqlite_math_functions
2831
archives:
29-
- format: binary
32+
- formats: [ binary ]

.goreleaser.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
2+
version: 2
3+
14
before:
25
hooks:
36
- go mod tidy
@@ -31,7 +34,7 @@ archives:
3134
# darwin: macos
3235
format_overrides:
3336
- goos: windows
34-
format: zip
37+
formats: [ zip ]
3538
files:
3639
- README.md
3740
- LICENSE
@@ -42,9 +45,9 @@ archives:
4245
checksum:
4346
name_template: 'checksums.txt'
4447
snapshot:
45-
name_template: "{{ .Tag }}-snapshot"
48+
version_template: "{{ .Tag }}-snapshot"
4649
changelog:
47-
skip: true
50+
disable: true
4851

4952
release:
5053
github:

0 commit comments

Comments
 (0)