- Create a release branch
release/x.y.z
from the commit we want inmain
- Input the parameter in the deployment scripts
- Set environment variables for the deployer account of the network to deploy on
export PRIVATE_KEY=<private_key>
- Set environment variables for the RPC url the network to deploy on
export RPC_URL=<rpc_url>
- Deploy the contracts with
yarn hardhat deploy --network <network> --deploy-scripts ./deploy/<network>
- Generate meta artifacts
yarn hh run --network <network> ./hardhat_scripts/gen_root_artifacts.ts
&yarn hh run --network <network> ./hardhat_scripts/gen_meta_artifacts.ts
- Commit the generated artifacts in the deployment folders
- Complete CHANGELOG
- Merge
release/x.y.z
intomain
- Create the GitHub Release with the relevant
x.y.z
tag - Create the upgrade proposal in Defender
- Get the necessary approvals
- Execute the upgrade proposal in Defender
- We're done !