Skip to content

Commit 71eab01

Browse files
ci: update whitelist-smart-contract to v1.0.0 and fix workflow variables (#210)
* ci: update whitelist-smart-contract to v1.0.0 and fix workflow variables * ci: pass whitelist network via env vars --------- Co-authored-by: Pierre Jeanjacquot <[email protected]>
1 parent 36ccc42 commit 71eab01

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,12 @@ jobs:
138138
- name: Add resource to whitelist
139139
env:
140140
CONTRACT_ADDRESS: ${{ vars.WEB3MAIL_WHITELIST_CONTRACT_ADDRESS }}
141-
WALLET_PRIVATE_KEY: ${{ secrets.WEB3MAIL_APP_OWNER_PRIVATEKEY }}
141+
PRIVATE_KEY: ${{ secrets.WEB3MAIL_APP_OWNER_PRIVATEKEY }}
142+
RPC_URL: ${{ secrets.RPC_URL }}
142143
run: |
143144
cd node_modules/whitelist-smart-contract
144-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
145+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
146+
npm run addResourceToWhitelist -- --network ${{ vars.WHITELIST_NETWORK_NAME }}
145147
146148
- name: Configure ENS
147149
if: ${{ vars.DAPP_ENS_NAME }}

.github/workflows/dapp-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ jobs:
123123
- name: Add resource to whitelist
124124
env:
125125
CONTRACT_ADDRESS: ${{ vars.WEB3MAIL_WHITELIST_CONTRACT_ADDRESS }}
126-
WALLET_PRIVATE_KEY: ${{ secrets.WEB3MAIL_APP_OWNER_PRIVATEKEY }}
126+
PRIVATE_KEY: ${{ secrets.WEB3MAIL_APP_OWNER_PRIVATEKEY }}
127+
RPC_URL: ${{ secrets.RPC_URL }}
127128
run: |
128129
cd node_modules/whitelist-smart-contract
129-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
130+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
131+
npm run addResourceToWhitelist -- --network ${{ vars.WHITELIST_NETWORK_NAME }}
130132
131133
- name: Configure ENS
132134
if: ${{ vars.DAPP_ENS_NAME }}

.github/workflows/reusable-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish-npm-sdk
1+
name: reusable-npm-publish
22

33
on:
44
workflow_call:

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@
7373
"jest": "^29.7.0",
7474
"prettier": "^2.8.4",
7575
"typescript": "^5.5.2",
76-
"whitelist-smart-contract": "github:iExecBlockchainComputing/whitelist-smart-contract#0.2.1"
76+
"whitelist-smart-contract": "github:iExecBlockchainComputing/whitelist-smart-contract#1.0.0"
7777
}
7878
}

0 commit comments

Comments
 (0)