Skip to content

Commit

Permalink
Goreleaser v2 upgrade (#489)
Browse files Browse the repository at this point in the history
* Upgrade goreleaser to v2.6.1
  • Loading branch information
neilotoole authored Feb 9, 2025
1 parent 158aec7 commit b1bea39
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 45 deletions.
29 changes: 0 additions & 29 deletions .generate-changelog-delta.sh

This file was deleted.

16 changes: 7 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
GORELEASER_VERSION: 1.24.0
GORELEASER_VERSION: 2.6.1
GOLANGCI_LINT_VERSION: v1.63.4
TPARSE_VERSION: v0.13.2
BUILD_TAGS: 'sqlite_vtable sqlite_stat4 sqlite_fts5 sqlite_introspect sqlite_json sqlite_math_functions'
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
go-version-file: go.mod

- name: GoReleaser (build darwin binaries)
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_VERSION }}
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
go-version-file: go.mod

- name: GoReleaser (build linux-amd64 binaries)
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_VERSION }}
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
sudo apt install -y gcc-aarch64-linux-gnu
- name: GoReleaser (build linux-arm64 binaries)
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_VERSION }}
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
go-version-file: go.mod

- name: GoReleaser (build windows binaries)
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_VERSION }}
Expand Down Expand Up @@ -311,15 +311,13 @@ jobs:
name: dist-windows
path: dist-windows

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

- name: GoReleaser (publish)
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser-pro
version: ${{ env.GORELEASER_VERSION }}
args: release --release-notes=./.CHANGELOG.delta.md -f .goreleaser.yml
args: release -f .goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Expand Down
5 changes: 4 additions & 1 deletion .goreleaser-darwin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -28,4 +31,4 @@ builds:
- sqlite_math_functions

archives:
- format: binary
- formats: [ binary ]
5 changes: 4 additions & 1 deletion .goreleaser-linux-amd64.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -32,4 +35,4 @@ builds:
- sqlite_json
- sqlite_math_functions
archives:
- format: binary
- formats: [ binary ]
5 changes: 4 additions & 1 deletion .goreleaser-linux-arm64.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -34,4 +37,4 @@ builds:
- sqlite_json
- sqlite_math_functions
archives:
- format: binary
- formats: [ binary ]
5 changes: 4 additions & 1 deletion .goreleaser-windows.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -26,4 +29,4 @@ builds:
- sqlite_json
- sqlite_math_functions
archives:
- format: binary
- formats: [ binary ]
9 changes: 6 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.6.1/www/docs/static/schema-pro.json
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -31,7 +34,7 @@ archives:
# darwin: macos
format_overrides:
- goos: windows
format: zip
formats: [ zip ]
files:
- README.md
- LICENSE
Expand All @@ -42,9 +45,9 @@ archives:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-snapshot"
version_template: "{{ .Tag }}-snapshot"
changelog:
skip: true
disable: true

release:
github:
Expand Down

0 comments on commit b1bea39

Please sign in to comment.