Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mb1896 committed Feb 19, 2024
1 parent 5437946 commit 3f95f0d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 123 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/auto-deploy-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@ jobs:
ref: ${{ github.head_ref }}
submodules: recursive

# - name: Setup node and npm
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: 'npm'
# cache-dependency-path: contracts/package-lock.json
#
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
#
# - name: Deploy IPC contracts to calibration net
# id: deploy_contracts
# run: |
# cd contracts
# npm install --save hardhat
# output=$(make deploy-ipc NETWORK=calibrationnet)
# echo "deploy_output<<EOF" >> $GITHUB_OUTPUT
# echo "$output" >> $GITHUB_OUTPUT
# echo "EOF" >> $GITHUB_OUTPUT
- name: Setup node and npm
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: contracts/package-lock.json

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Deploy IPC contracts to calibration net
id: deploy_contracts
run: |
cd contracts
npm install --save hardhat
output=$(make deploy-ipc NETWORK=calibrationnet)
echo "deploy_output<<EOF" >> $GITHUB_OUTPUT
echo "$output" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Parse deploy output
run: |
deploy_output=$(cat scripts/deploy_subnet_under_calibration_net/deploy_output.txt)
deploy_output='${{ steps.deploy_contracts.outputs.deploy_output }}'
echo "$deploy_output"
deployed_gateway_address=$(echo "$deploy_output" | grep '"Gateway"' | awk -F'"' '{print $4}')
deployed_registry_address=$(echo "$deploy_output" | grep '"SubnetRegistry"' | awk -F'"' '{print $4}')
Expand Down
103 changes: 0 additions & 103 deletions scripts/deploy_subnet_under_calibration_net/deploy_output.txt

This file was deleted.

0 comments on commit 3f95f0d

Please sign in to comment.