Skip to content

Commit 3852d60

Browse files
ci: add arbitrumSepolia network support for whitelist in dapp release
1 parent 668011d commit 3852d60

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dapp-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,16 @@ jobs:
118118
119119
- name: Add resource to whitelist
120120
env:
121-
CONTRACT_ADDRESS: ${{ secrets.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
121+
CONTRACT_ADDRESS: ${{ vars.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
122122
WALLET_PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
123123
run: |
124124
cd node_modules/whitelist-smart-contract
125-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
125+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
126+
if [ "${{ matrix.environment }}" = "arbitrum-sepolia-prod" ]; then
127+
npm run addResourceToWhitelist -- --network arbitrumSepolia
128+
else
129+
npm run addResourceToWhitelist
130+
fi
126131
127132
- name: Configure ENS
128133
if: ${{ vars.DAPP_ENS_NAME }}

0 commit comments

Comments
 (0)