Skip to content

Commit 7ef235f

Browse files
authored
chore(goreleaser): fix deprecation warnings (#102)
1 parent 4ea6466 commit 7ef235f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Run GoReleaser
2424
uses: goreleaser/goreleaser-action@v6
2525
with:
26-
version: latest
26+
version: '~> v2'
2727
args: release --clean
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ release:
3636
draft: false
3737

3838
snapshot:
39-
name_template: "{{.Tag}}"
39+
version_template: "{{.Tag}}"
4040

4141
checksum:
4242
name_template: "task_checksums.txt"

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
GOLANG_CI_LINT_VER:=v1.61.0
2+
GORELEASER_VERSION:=v2.3.2
23
OUT_BIN?=${PWD}/bin/jlv
34
COVER_PACKAGES=./...
45
VERSION?=${shell git describe --tags}
@@ -53,6 +54,13 @@ vendor:
5354
go mod vendor
5455
.PHONY: vendor
5556

57+
goreleaser.check:
58+
docker run --rm -it \
59+
-v ${PWD}:/go/src/github.com/hedhyw/json-log-viewer \
60+
-w /go/src/github.com/hedhyw/json-log-viewer \
61+
goreleaser/goreleaser:${GORELEASER_VERSION} check
62+
.PHONY: goreleaser.check
63+
5664
bin/golangci-lint-${GOLANG_CI_LINT_VER}:
5765
curl \
5866
-sSfL \

0 commit comments

Comments
 (0)