Skip to content

Commit

Permalink
debug deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Jan 7, 2024
1 parent 304f86c commit 4a3deae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ jobs:
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }}
steps:
- uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Report public key to make it easy to send funds for deployments
run: cast wallet address "${DEPLOYMENT_KEY}"
- name: Forge shallow install
run: forge install --shallow
run: nix develop --command cast wallet address "${DEPLOYMENT_KEY}"

- name: Forge deploy contracts to mumbai
env:
CI_DEPLOY_RPC_URL: ${{ secrets.CI_DEPLOY_RPC_URL }}
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"$( ${(build-meta-cmd contract)} -E hex )" \
;
'';
deploy-contracts = pkgs.writeShellScriptBin "deploy-contracts" (''
deploy-contracts = rainix.mkTask.${system} { name = "deploy-contracts"; body = (''
set -euo pipefail;
forge build --force;
'' + pkgs.lib.concatStrings (map deploy-single-contract concrete-contracts));
'' + pkgs.lib.concatStrings (map deploy-single-contract concrete-contracts)); };

default = build-meta;
ci-prep = build-meta;
Expand Down

0 comments on commit 4a3deae

Please sign in to comment.