Skip to content

Commit

Permalink
add goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Feb 21, 2024
1 parent d3c0c0f commit 22a1020
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21

Expand Down
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .goreleaser.yaml
builds:
- main: ./cmd/
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/0xPolygonHermez/zkevm-bridge-service.Version={{.Version}}
- -X github.com/0xPolygonHermez/zkevm-bridge-service.GitRev={{.Commit}}
- -X github.com/0xPolygonHermez/zkevm-bridge-service.BuildDate={{.Date}}
- -X github.com/0xPolygonHermez/zkevm-bridge-service.GitBranch={{.Branch}}
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: true

0 comments on commit 22a1020

Please sign in to comment.