forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cardona.zip (0xPolygonHermez#3154)
- Loading branch information
1 parent
65a507e
commit 8f79b21
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -33,8 +33,18 @@ jobs: | |
uses: olegtarasov/[email protected] | ||
id: tagName | ||
|
||
- name: Put testnet and mainnet artifacts into a single zip | ||
- name: Put cardona, testnet and mainnet artifacts into a single zip | ||
run: | | ||
# CARDONA | ||
mkdir -p cardona/config/environments/cardona | ||
mkdir -p cardona/db/scripts | ||
cp config/environments/cardona/* cardona/config/environments/cardona | ||
cp docker-compose.yml cardona | ||
sed -i 's/\/config\/environments\/${ZKEVM_NETWORK}/\/config\/environments\/cardona/g' cardona/docker-compose.yml | ||
cp db/scripts/init_prover_db.sql cardona/db/scripts | ||
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 | ||
|
@@ -56,10 +66,10 @@ jobs: | |
sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" mainnet/docker-compose.yml | ||
zip -r mainnet.zip mainnet | ||
- name: Publish testnet and mainnet zip into release | ||
- name: Publish cardona, testnet and mainnet zip into release | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'testnet.zip;mainnet.zip' | ||
files: 'cardona.zip;testnet.zip;mainnet.zip' | ||
repo-token: ${{ secrets.TOKEN_RELEASE }} | ||
release-tag: ${{ steps.tagName.outputs.tag }} | ||
|