Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mihanix committed Nov 15, 2023
1 parent edeea1f commit b809fe2
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/deploy_mumbai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: hit yarn cache
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: cache yarn
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: build node modules
run: yarn install --non-interactive
Expand All @@ -45,12 +32,8 @@ jobs:
run: forge test

- name: deploy contracts to mumbai
run: |
forge build
forge test
forge script ./script/DeployAll.s.sol \
--rpc-url ${{ secrets.mumbai_rpc_url }} \
--etherscan-api-key ${{ secrets.polygonscan_api_key }} \
--private-key $PVK_A1 \
--broadcast \
--verify
run: forge script ./script/DeployAll.s.sol --rpc-url ${{ secrets.mumbai_rpc_url }} \
--etherscan-api-key ${{ secrets.polygonscan_api_key }} \
--private-key $PVK_A1 \
--broadcast \
--verify

0 comments on commit b809fe2

Please sign in to comment.