I am trying to deploy smart contracts on Ethereum Sepolia testnet using python brownie eth-brownie==1.19.3. My scripts work locally, but I want to deploy from Github Actions directly for a CICD pipeline for smart contracts.
Does anyone have a workflow.yaml for brownie?
The
workflow.yamlbelow works for me. To implement this add the following variables to your repo in Settings > Secrets and variables > Actions:RPC HTTP URL FOR BLOCKCHAIN CONNECTIVITY:
RPC_URL=REDACTEDEXLORER URL API KEY FOR CONTRACT VERIFICATION:
ETHERSCAN_TOKEN=REDACTEDHOT WALLET PRIVATE KEY DEPLOYING THE CONTRACT
PRIVATE_KEY=REDACTEDNODE ADDRESS WHICH SERVES THE ORACLE REQUESTS TO THE CONTRACT
NODE_ADDRESS=REDACTEDWALLET ADDRESS TO OWN THE CONTRACT AFTER DEPLOYMENT & FULFILLMENT
OWNER_ADDRESS=REDACTEDThe
workflow.yamlis default set to Ethereum Sepolia, if deploying to another network, be sure to configure L25 (brownie netowks add YOUR_NETWORK...) in .github/workflows/workflow.yamlReference