Skip to content
Draft
Changes from 1 commit
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
30 changes: 30 additions & 0 deletions .github/workflows/devnet_deploy_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy devnet contracts
Comment thread
arsen3d marked this conversation as resolved.
Outdated

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
Comment thread
arsen3d marked this conversation as resolved.
Outdated

- name: Commit and push
run: |
Comment thread
arsen3d marked this conversation as resolved.
git add .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional, but might be good to target the directory where we expect changes. Helps to document it a bit better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to generate binding, which is not in hardhat directory

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @bgins means: git add pkg/web3/bindings

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you identified which files are going to be added here?
Can you list them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Folders:
* pkg/web3/bindings
* hardhat/deployments
* hardhat/.openzeppelin

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The you have your list for git add

git commit -m "Contract Migration Updated"
Comment thread
arsen3d marked this conversation as resolved.
Outdated
git push
Comment thread
arsen3d marked this conversation as resolved.
Outdated