diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 387c1f5f5..448d689fe 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,3 +89,35 @@ jobs: - name: Verify deployments work run: yarn hardhat deploy + + export-deployments: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Check out code + uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.VENUS_TOOLS_TOKEN }} + + - 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: | + yarn hardhat export --network bsctestnet --export ./deployments/bsctestnet.json + yarn hardhat export --network bscmainnet --export ./deployments/bscmainnet.json + yarn prettier + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "feat: updating deployment files" \ No newline at end of file