Skip to content

Foundry Deploy Action

Actions
A custom action to deploy smart contracts using Foundry
v1.0.3
LatestPre-release
Star (0)

Tags

 (1)

Foundry Deploy Action

A custom GitHub Action to deploy smart contracts using Foundry. This action automates the process of compiling and deploying your smart contracts to the Ethereum blockchain.

Features

  • Checkout the repository and its submodules.
  • Install the Foundry toolchain.
  • Set up necessary environment variables.
  • Compile smart contracts using Foundry.
  • Deploy contracts with optional verification on Etherscan.

Usage

To use this action in your GitHub workflows, you can add the following YAML snippet to your workflow file:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Foundry Deploy Action
        uses: grossiwm/foundry-deploy-action@latest
        with:
          rpc-url: ${{ secrets.RPC_URL }}
          private-key: ${{ secrets.PRIVATE_KEY }}
          chain-id: 1 # Replace with your desired chain ID
          etherscan-api-key: ${{ secrets.ETHERSCAN_API_KEY }}
          deploy-script: "path/to/your/deploy_script.sol"

Example Project

Check out the example project using this action here.

Foundry Deploy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A custom action to deploy smart contracts using Foundry
v1.0.3
LatestPre-release

Tags

 (1)

Foundry Deploy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.