Skip to content

Conversation

@penDerGraft
Copy link
Contributor

@penDerGraft penDerGraft commented Dec 12, 2025

This PR creates a GitHub workflow that will automatically run forge build on any new tag (or on demand with a tag parameter). It will then either 1) add the built artifacts to an existing release for that tag or 2) create a new release with the artifacts if one doesn't exist.

I think this will cut down on all the local build/deploy workflows and help us centralize this a bit more.


Note

Adds a workflow that builds Foundry contracts on tag or manual run, extracts ABIs/bytecode, and uploads them to the tag’s GitHub release (creating it if needed).

  • CI:
    • Workflow /.github/workflows/release-artifacts.yml:
      • Triggers on tag push and workflow_dispatch with tag input.
      • Checks out the tagged ref, installs Foundry and GitHub CLI, runs forge build.
      • Authenticates gh, creates release if missing, or updates existing one.
      • Uploads artifacts/** to the release (clobber enabled) and prints an upload summary.
  • Tooling:
    • Script scripts/extract-artifacts.js:
      • Parses Foundry outputs in out/{Contract}.sol/{Contract}.json for specified contracts.
      • Extracts and writes ABI, bytecode, and deployed bytecode to artifacts/{Contract}/.
      • Outputs a summary and writes contract list to GITHUB_OUTPUT.

Written by Cursor Bugbot for commit f89b4a5. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Copy link
Contributor

@balesandrew balesandrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet!

@penDerGraft penDerGraft merged commit 978f041 into main Dec 12, 2025
4 checks passed
@penDerGraft penDerGraft deleted the bp/automated-contract-build branch December 12, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants