Skip to content

Commit

Permalink
prep deployment
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
zeroknots committed Jul 12, 2024
1 parent 33f110f commit 237db48
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- "main"
pull_request:

jobs:
forge-artifacts:
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-artifacts.yaml@main"
43 changes: 43 additions & 0 deletions shell/prepare-artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@


#!/usr/bin/env bash

# Strict mode: https://gist.github.com/vncsna/64825d5609c146e80de8b1fd623011ca
set -euo pipefail


# Delete the current artifacts
artifacts=./artifacts
rm -rf $artifacts

# Create the new artifacts directories
mkdir $artifacts \
"$artifacts/interfaces"

forge build

cp out/Safe7579.sol/Safe7579.json $artifacts
cp out/Safe7579Launchpad.sol/Safe7579Launchpad.json $artifacts
cp out/DCUtil.sol/BatchedExecUtil.json $artifacts
cp out/DCUtil.sol/ModuleInstallUtil.json $artifacts
cp out/DCUtil.sol/Safe7579DCUtil.json $artifacts



interfaces=./artifacts/interfaces


cp out/ISafe7579.sol/ISafe7579.json $interfaces
cp out/ISafeOp.sol/ISafeOp.json $interfaces
cp out/ISafe.sol/ISafe.json $interfaces
cp out/IERC7579Account.sol/IERC7579Account.json $interfaces
cp out/IERC7579Account.sol/IERC7579AccountEvents.json $interfaces
cp out/IERC7579Account.sol/IERC7579AccountView.json $interfaces
cp out/IERC7579Module.sol/IExecutor.json $interfaces
cp out/IERC7579Module.sol/IFallback.json $interfaces
cp out/IERC7579Module.sol/IHook.json $interfaces
cp out/IERC7579Module.sol/IModule.json $interfaces
cp out/IERC7579Module.sol/IValidator.json $interfaces
cp out/IMSA.sol/IMSA.json $interfaces

pnpm prettier --write ./artifacts

0 comments on commit 237db48

Please sign in to comment.