Skip to content

Commit

Permalink
Fix protoc-gen-go-plugin generated version in release (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvolod authored Mar 17, 2023
1 parent adf8f78 commit 3c6317f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
.idea
.DS_Store
*.wasm
dist/
3 changes: 2 additions & 1 deletion goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -40,6 +40,7 @@ nfpms:

archives:
-
rlcp: true
format: tar.gz
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
files:
Expand Down

0 comments on commit 3c6317f

Please sign in to comment.