From 22a1020172cbb360d0af7849efb2f20221ac9e25 Mon Sep 17 00:00:00 2001 From: joanestebanr <129153821+joanestebanr@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:32:29 +0100 Subject: [PATCH] add goreleaser.yml --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f51bca3..5dc12b4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..621153c7 --- /dev/null +++ b/.goreleaser.yml @@ -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