From aa9342c2ae55ecda29c421bbd40dd30b253c0292 Mon Sep 17 00:00:00 2001 From: agnusmor <100322135+agnusmor@users.noreply.github.com> Date: Fri, 9 Aug 2024 10:27:49 +0200 Subject: [PATCH] Fix release github action (#3745) (#3755) * fix releaser * goreleaser yaml update version 2 * fix goreleaser version * remove testnet.zip from releaser --- .github/workflows/release.yml | 14 ++------------ .goreleaser.yaml | 2 ++ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb4f6881a2..88f939c3d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,9 +22,9 @@ jobs: run: go install github.com/gobuffalo/packr/v2/packr2@v2.8.3 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: - version: latest + version: '~> v2' args: release --clean env: GITHUB_TOKEN: ${{ secrets.TOKEN_RELEASE }} @@ -45,16 +45,6 @@ jobs: mv cardona/config/environments/cardona/example.env cardona sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" cardona/docker-compose.yml zip -r cardona.zip cardona - # TESTNET - mkdir -p testnet/config/environments/testnet - mkdir -p testnet/db/scripts - cp config/environments/testnet/* testnet/config/environments/testnet - cp docker-compose.yml testnet - sed -i 's/\/config\/environments\/${ZKEVM_NETWORK}/\/config\/environments\/testnet/g' testnet/docker-compose.yml - cp db/scripts/init_prover_db.sql testnet/db/scripts - mv testnet/config/environments/testnet/example.env testnet - sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" testnet/docker-compose.yml - zip -r testnet.zip testnet # MAINNET mkdir -p mainnet/config/environments/mainnet mkdir -p mainnet/db/scripts diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 09519520d1..c75746b82e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,6 @@ # .goreleaser.yaml +version: 2 + builds: - main: ./cmd/ goos: