Skip to content

Commit

Permalink
chore(goreleaser): fix deprecation warnings (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedhyw authored Oct 5, 2024
1 parent 4ea6466 commit 7ef235f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ release:
draft: false

snapshot:
name_template: "{{.Tag}}"
version_template: "{{.Tag}}"

checksum:
name_template: "task_checksums.txt"
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GOLANG_CI_LINT_VER:=v1.61.0
GORELEASER_VERSION:=v2.3.2
OUT_BIN?=${PWD}/bin/jlv
COVER_PACKAGES=./...
VERSION?=${shell git describe --tags}
Expand Down Expand Up @@ -53,6 +54,13 @@ vendor:
go mod vendor
.PHONY: vendor

goreleaser.check:
docker run --rm -it \
-v ${PWD}:/go/src/github.com/hedhyw/json-log-viewer \
-w /go/src/github.com/hedhyw/json-log-viewer \
goreleaser/goreleaser:${GORELEASER_VERSION} check
.PHONY: goreleaser.check

bin/golangci-lint-${GOLANG_CI_LINT_VER}:
curl \
-sSfL \
Expand Down

0 comments on commit 7ef235f

Please sign in to comment.