diff --git a/subgraphs/cross-chain-governance/.releaserc b/subgraphs/cross-chain-governance/.releaserc index db7781f5..97dafa7e 100644 --- a/subgraphs/cross-chain-governance/.releaserc +++ b/subgraphs/cross-chain-governance/.releaserc @@ -80,7 +80,8 @@ }, { "name": "pre-*", - "prerelease": "pre" + "channel": "pre", + "prerelease": true } ] } \ No newline at end of file diff --git a/subgraphs/etherfi-promo/.releaserc b/subgraphs/etherfi-promo/.releaserc index db7781f5..8676ded1 100644 --- a/subgraphs/etherfi-promo/.releaserc +++ b/subgraphs/etherfi-promo/.releaserc @@ -72,6 +72,12 @@ ], "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } + ], + [ + "@semantic-release/exec", + { + "success": "./deploy.sh" + } ] ], "branches": [ @@ -80,7 +86,8 @@ }, { "name": "pre-*", - "prerelease": "pre" + "channel": "pre", + "prerelease": true } ] } \ No newline at end of file diff --git a/subgraphs/etherfi-promo/deploy.sh b/subgraphs/etherfi-promo/deploy.sh new file mode 100755 index 00000000..3ff3d85d --- /dev/null +++ b/subgraphs/etherfi-promo/deploy.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +version=($(jq -r '.version' package.json)) + +if [[ $string == *"-pre"* ]]; then + yarn deploy:sepolia --version-label $version +else + yarn deploy:bsc --version-label $version + yarn deploy:ethereum --version-label $version + yarn deploy:arbitrum --version-label $version +fi + + + diff --git a/subgraphs/etherfi-promo/prepare.sh b/subgraphs/etherfi-promo/prepare.sh deleted file mode 100755 index 131f8cc0..00000000 --- a/subgraphs/etherfi-promo/prepare.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -# Install from root -cd ../.. -yarn diff --git a/subgraphs/isolated-pools/.releaserc b/subgraphs/isolated-pools/.releaserc index 31a2f26c..8676ded1 100644 --- a/subgraphs/isolated-pools/.releaserc +++ b/subgraphs/isolated-pools/.releaserc @@ -76,7 +76,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "./prepare.sh" + "success": "./deploy.sh" } ] ], @@ -86,7 +86,8 @@ }, { "name": "pre-*", - "prerelease": "pre" + "channel": "pre", + "prerelease": true } ] } \ No newline at end of file diff --git a/subgraphs/isolated-pools/deploy.sh b/subgraphs/isolated-pools/deploy.sh new file mode 100755 index 00000000..01762be7 --- /dev/null +++ b/subgraphs/isolated-pools/deploy.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +version=($(jq -r '.version' package.json)) + +if [[ $string == *"-pre"* ]]; then + yarn deploy:chapel --version-label $version + yarn deploy:sepolia --version-label $version + yarn deploy:arbitrumSepolia --version-label $version + yarn deploy:zksyncSepolia --version-label $version + yarn deploy:optimismSepolia --version-label $version + yarn deploy:baseSepolia --version-label $version +else + yarn deploy:bsc --version-label $version + yarn deploy:ethereum --version-label $version + yarn deploy:arbitrum --version-label $version + yarn deploy:zksync --version-label $version + yarn deploy:optimism --version-label $version +fi diff --git a/subgraphs/protocol-reserve/.releaserc b/subgraphs/protocol-reserve/.releaserc index 31a2f26c..8676ded1 100644 --- a/subgraphs/protocol-reserve/.releaserc +++ b/subgraphs/protocol-reserve/.releaserc @@ -76,7 +76,7 @@ [ "@semantic-release/exec", { - "prepareCmd": "./prepare.sh" + "success": "./deploy.sh" } ] ], @@ -86,7 +86,8 @@ }, { "name": "pre-*", - "prerelease": "pre" + "channel": "pre", + "prerelease": true } ] } \ No newline at end of file diff --git a/subgraphs/protocol-reserve/deploy.sh b/subgraphs/protocol-reserve/deploy.sh new file mode 100755 index 00000000..7ea2a589 --- /dev/null +++ b/subgraphs/protocol-reserve/deploy.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +version=($(jq -r '.version' package.json)) + +if [[ $string == *"-pre"* ]]; then + yarn deploy:chapel --version-label $version + yarn deploy:sepolia --version-label $version +else + yarn deploy:bsc --version-label $version + yarn deploy:ethereum --version-label $version +fi diff --git a/subgraphs/venus-governance/.releaserc b/subgraphs/venus-governance/.releaserc index 31a2f26c..8875625e 100644 --- a/subgraphs/venus-governance/.releaserc +++ b/subgraphs/venus-governance/.releaserc @@ -76,7 +76,8 @@ [ "@semantic-release/exec", { - "prepareCmd": "./prepare.sh" + "prepareCmd": "./prepare.sh", + "success": "./deploy.sh" } ] ], @@ -86,7 +87,8 @@ }, { "name": "pre-*", - "prerelease": "pre" + "channel": "pre", + "prerelease": true } ] } \ No newline at end of file diff --git a/subgraphs/venus-governance/deploy.sh b/subgraphs/venus-governance/deploy.sh new file mode 100755 index 00000000..f6bf0b29 --- /dev/null +++ b/subgraphs/venus-governance/deploy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +version=($(jq -r '.version' package.json)) + +if [[ $string == *"-pre"* ]]; then + yarn deploy:chapel --version-label $version +else + yarn deploy:bsc --version-label $version +fi + + + diff --git a/subgraphs/venus/.releaserc b/subgraphs/venus/.releaserc index 31a2f26c..8875625e 100644 --- a/subgraphs/venus/.releaserc +++ b/subgraphs/venus/.releaserc @@ -76,7 +76,8 @@ [ "@semantic-release/exec", { - "prepareCmd": "./prepare.sh" + "prepareCmd": "./prepare.sh", + "success": "./deploy.sh" } ] ], @@ -86,7 +87,8 @@ }, { "name": "pre-*", - "prerelease": "pre" + "channel": "pre", + "prerelease": true } ] } \ No newline at end of file diff --git a/subgraphs/venus/deploy.sh b/subgraphs/venus/deploy.sh new file mode 100755 index 00000000..f6bf0b29 --- /dev/null +++ b/subgraphs/venus/deploy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +version=($(jq -r '.version' package.json)) + +if [[ $string == *"-pre"* ]]; then + yarn deploy:chapel --version-label $version +else + yarn deploy:bsc --version-label $version +fi + + +