Skip to content

Commit

Permalink
correct deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Oct 24, 2024
1 parent da22e42 commit 1eda58d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "[mainnet-deploy] deploy listing"
on:
workflow_dispatch:
inputs:

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: mainnet
url: https://term-finance.github.io/term-finance-listing/
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
- run: forge install
- run: forge build
- run: forge tree
- run: forge script script/RepoTokenLinkedList.s.sol:DeployRepoTokenLinkedList --rpc-url $RPC_URL --broadcast --gas-price 500000000000 --verify --verbosity 4
env:
RPC_URL: ${{ secrets.RPC_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
CONTROLLER_ADDRESS: ${{ vars.CONTROLLER_ADDRESS }}
DISCOUNT_RATE_ADAPTER_ADDRESS: ${{ vars.DISCOUNT_RATE_ADAPTER_ADDRESS }}
EVENT_EMITTER_ADDRESS: ${{ vars.EVENT_EMITTER_ADDRESS }}
ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }}
DEVOPS_ADDRESS: ${{ vars.DEVOPS_ADDRESS }}

17 changes: 3 additions & 14 deletions .github/workflows/deploy-sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ name: "[sepolia-deploy] deploy listing"
on:
workflow_dispatch:
inputs:
tokenMintSupply:
description: "Maximum token supply minted"
required: true
mintAddress:
description: "Mint Address"
required: true

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -19,24 +14,18 @@ jobs:
with:
fetch-depth: 0
submodules: recursive
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
- run: yarn install --immutable
- uses: foundry-rs/foundry-toolchain@v1
- run: yarn install
- run: forge install
- run: forge build
- run: forge tree
- run: forge script script/RepoTokenLinkedList.s.sol:DeployRepoTokenLinkedList --rpc-url $RPC_URL --broadcast --verify --verbosity 4
- run: forge script script/RepoTokenLinkedList.s.sol:DeployRepoTokenLinkedList --rpc-url $RPC_URL --broadcast --gas-price 500000000000 --verify --verbosity 4
env:
RPC_URL: ${{ secrets.RPC_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
CONTROLLER_ADDRESS: ${{ vars.CONTROLLER_ADDRESS }}
DISCOUNT_RATE_ADAPTER_ADDRESS: ${{ vars.DISCOUNT_RATE_ADAPTER_ADDRESS }}
EVENT_EMITTER_ADDRESS: ${{ vars.EVENT_EMITTER_ADDRESS }}
ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }}
DEVOPS_ADDRESS: ${{ vars.DEVOPS_ADDRESS }}

0 comments on commit 1eda58d

Please sign in to comment.