Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: devnet-contract-deploy #222

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/devnet_deploy_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Devnet contracts

# on: workflow_dispatch
on:
push:
branches:
- arsen/fix-pow-proxy-update-2
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
cd ..

- name: Generate Go bindings
run: |
./stack go-bindings

- name: Commit and push
run: |
arsen3d marked this conversation as resolved.
Show resolved Hide resolved
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 -u origin devnet/chore-updates-after-deploying-contracts
Loading