Skip to content

Commit

Permalink
ci: add a step to write secret.json
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnguyenbitmark committed Feb 27, 2024
1 parent 3fb6be9 commit bbd6bf8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/abi-gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ jobs:

- name: Install abigen
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest

- name: Write secret.json file
env:
MNEMONIC: ${{ secrets.MNEMONIC }}
MAINNET_ENDPOINT: ${{ secrets.MAINNET_ENDPOINT }}
GOERLI_ENDPOINT: ${{ secrets.GOERLI_ENDPOINT }}
BSCTEST_ENDPOINT: ${{ secrets.BSCTEST_ENDPOINT }}
BSC_ENDPOINT: ${{ secrets.BSC_ENDPOINT }}
ETHERSCAN_API: ${{ secrets.ETHERSCAN_API }}
BSC_API: ${{ secrets.BSC_API }}
run: |
cat <<EOF > secret.json
{
"mnemonic": "${MNEMONIC}",
"mainnet_endpoint": "${MAINNET_ENDPOINT}",
"goerli_endpoint": "${GOERLI_ENDPOINT}",
"bsctest_endpoint": "${BSCTEST_ENDPOINT}",
"bsc_endpoint": "${BSC_ENDPOINT}",
"etherscan_api": "${ETHERSCAN_API}",
"bsc_api": "${BSC_API}"
}
EOF
- name: Generate ABI files for changed Solidity files
env:
Expand Down

0 comments on commit bbd6bf8

Please sign in to comment.