Merge branch 'master' of github.com:meterio/sumer-oracle #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master, main, develop] | |
pull_request: | |
branches: [master, main, develop] | |
jobs: | |
export-deployments: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
cache: "yarn" | |
- name: Install dependencies | |
# Hack to get around failing "ethereumjs-abi The remote archive doesn't match the expected checksum" error | |
run: YARN_CHECKSUM_BEHAVIOR=update yarn | |
- name: Export deployments | |
run: | | |
for NETWORK in sepolia arbitrum base metertest metermain; do | |
EXPORT=true yarn hardhat export --network ${NETWORK} --export ./deployments/${NETWORK}.json | |
jq -M '{name, chainId, addresses: .contracts | map_values(.address)}' ./deployments/${NETWORK}.json > ./deployments/${NETWORK}_addresses.json | |
done | |
yarn prettier | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "feat: updating deployment files" | |
file_pattern: "deployments/*.json" |