Skip to content

Commit 668011d

Browse files
ci: add arbitrumSepolia network support for whitelist in dapp deploy
1 parent 1fec052 commit 668011d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,16 @@ jobs:
133133
134134
- name: Add resource to whitelist
135135
env:
136-
CONTRACT_ADDRESS: ${{ secrets.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
136+
CONTRACT_ADDRESS: ${{ vars.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
137137
WALLET_PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
138138
run: |
139139
cd node_modules/whitelist-smart-contract
140-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
140+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
141+
if [ "${{ inputs.environment }}" = "arbitrum-sepolia-dev" ]; then
142+
npm run addResourceToWhitelist -- --network arbitrumSepolia
143+
else
144+
npm run addResourceToWhitelist
145+
fi
141146
142147
- name: Configure ENS
143148
if: ${{ vars.DAPP_ENS_NAME }}

0 commit comments

Comments
 (0)