Skip to content

grossiwm/foundry-deploy-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published