From 3c6317fd0941eef73c05dc705a7dc5e14b345c4f Mon Sep 17 00:00:00 2001 From: Dmitry Volodin Date: Fri, 17 Mar 2023 14:37:55 +0300 Subject: [PATCH] Fix protoc-gen-go-plugin generated version in release (#40) --- .github/workflows/release.yaml | 9 +++++---- .gitignore | 1 + goreleaser.yaml | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index da7b75e..2b2c7df 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,9 +21,10 @@ jobs: go-version-file: go.mod - name: GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v4 with: - version: v1.4.1 - args: release --rm-dist --timeout 30m + distribution: goreleaser + version: v1.16.1 + args: release --clean --timeout 30m env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index b74762c..5c634a1 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ .idea .DS_Store *.wasm +dist/ diff --git a/goreleaser.yaml b/goreleaser.yaml index 5ab5013..01f9201 100644 --- a/goreleaser.yaml +++ b/goreleaser.yaml @@ -6,7 +6,7 @@ builds: ldflags: - -s -w - "-extldflags '-static'" - - -X version.Version={{.Version}} + - -X github.com/knqyf263/go-plugin/version.Version={{.Version}} env: - CGO_ENABLED=0 goos: @@ -40,6 +40,7 @@ nfpms: archives: - + rlcp: true format: tar.gz name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" files: