CI/CD Service
Deployment with Hardhat
Learn how to deploy your Hardhat project's contracts with BuildBear's CI/CD service.
Right now we only support deployments with Hardhat. Hardhat test support is coming soon.
Setup GitHub Actions
BuildBear's CI/CD system uses GitHub Actions. We encourage you to check out the official GitHub Actions documentation for more information. For the purposes of this quickstart, you'll only need to create a .github/workflows directory at the top-level of your repository. Workflows are YAML files that we'll put in this folder.
Workflow File
To get started with Hardhat you can add this to your workflow:
A few things to highlight in the BB Action CI:
- At the time of writing, v1.0.0 is the current version of the action, please check the BB CI Action GitHub repo for the latest version.
- On line
35
we set an environment variable to disable user confirmation of deployments. Because we're automating the deployment this prevents it from stopping on this step. network
is a list that can take multiple chain objects and their specified IDs.