From 4d61db0b5e32e7bd41136ad2ed583fac65bfdb41 Mon Sep 17 00:00:00 2001 From: Arsen Yeremin Date: Tue, 2 Jul 2024 12:07:44 -0700 Subject: [PATCH 1/4] build: devnet-contract-deploy --- .github/workflows/devnet_deploy_contracts.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/devnet_deploy_contracts.yml diff --git a/.github/workflows/devnet_deploy_contracts.yml b/.github/workflows/devnet_deploy_contracts.yml new file mode 100644 index 00000000..4aafd6d7 --- /dev/null +++ b/.github/workflows/devnet_deploy_contracts.yml @@ -0,0 +1,30 @@ +name: Deploy devnet contracts + +on: workflow_dispatch + +jobs: + contracts: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + context: app + + - name: Install Doppler CLI + uses: dopplerhq/cli-action@v1 + + - name: Deploy contracts + id: deploy-contracts + env: + DOPPLER_TOKEN: ${{ secrets.DEVNET_DOPPLER_TOKEN_CONTRACTS_DEPLOY }} + run: | + cd hardhat + npm ci + doppler run -- npx hardhat deploy --network devnet + + - name: Commit and push + run: | + git add . + git commit -m "Contract Migration Updated" + git push From d698ed8e42d97671c025864d606a2f341bc0d9c7 Mon Sep 17 00:00:00 2001 From: arsen3d Date: Tue, 2 Jul 2024 12:26:48 -0700 Subject: [PATCH 2/4] Update .github/workflows/devnet_deploy_contracts.yml Co-authored-by: Brian Ginsburg <7957636+bgins@users.noreply.github.com> --- .github/workflows/devnet_deploy_contracts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devnet_deploy_contracts.yml b/.github/workflows/devnet_deploy_contracts.yml index 4aafd6d7..9d562bad 100644 --- a/.github/workflows/devnet_deploy_contracts.yml +++ b/.github/workflows/devnet_deploy_contracts.yml @@ -26,5 +26,5 @@ jobs: - name: Commit and push run: | git add . - git commit -m "Contract Migration Updated" + git commit -m "chore: Contract Migration Updated" git push From 2ed6bcf6a169d05b5c76e29c613115476d44daa5 Mon Sep 17 00:00:00 2001 From: arsen3d Date: Tue, 2 Jul 2024 12:27:00 -0700 Subject: [PATCH 3/4] Update .github/workflows/devnet_deploy_contracts.yml Co-authored-by: Brian Ginsburg <7957636+bgins@users.noreply.github.com> --- .github/workflows/devnet_deploy_contracts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devnet_deploy_contracts.yml b/.github/workflows/devnet_deploy_contracts.yml index 9d562bad..f23f9ebb 100644 --- a/.github/workflows/devnet_deploy_contracts.yml +++ b/.github/workflows/devnet_deploy_contracts.yml @@ -21,7 +21,7 @@ jobs: run: | cd hardhat npm ci - doppler run -- npx hardhat deploy --network devnet + doppler run -- npx hardhat deploy --network devnet - name: Commit and push run: | From ee2521ef512f49b793da31aedf4b63d31c4eb213 Mon Sep 17 00:00:00 2001 From: arsen3d Date: Tue, 2 Jul 2024 12:27:06 -0700 Subject: [PATCH 4/4] Update .github/workflows/devnet_deploy_contracts.yml Co-authored-by: Brian Ginsburg <7957636+bgins@users.noreply.github.com> --- .github/workflows/devnet_deploy_contracts.yml | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/devnet_deploy_contracts.yml b/.github/workflows/devnet_deploy_contracts.yml index f23f9ebb..b9e0a0ac 100644 --- a/.github/workflows/devnet_deploy_contracts.yml +++ b/.github/workflows/devnet_deploy_contracts.yml @@ -1,7 +1,10 @@ -name: Deploy devnet contracts - -on: workflow_dispatch +name: Deploy Devnet contracts +# on: workflow_dispatch +on: + push: + branches: + - arsen/fix-pow-proxy-update-2 jobs: contracts: runs-on: ubuntu-latest @@ -22,9 +25,17 @@ jobs: cd hardhat npm ci doppler run -- npx hardhat deploy --network devnet - + cd .. + + - name: Generate Go bindings + run: | + ./stack go-bindings + - name: Commit and push run: | - git add . + git checkout -b devnet/chore-updates-after-deploying-contracts + git add pkg/web3/bindings + git add hardhat/deployments + git add hardhat/.openzeppelin git commit -m "chore: Contract Migration Updated" - git push + git push -u origin devnet/chore-updates-after-deploying-contracts