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

Automate deployment of Semaphore subgraphs #919

Open
vplasencia opened this issue Dec 10, 2024 · 1 comment
Open

Automate deployment of Semaphore subgraphs #919

vplasencia opened this issue Dec 10, 2024 · 1 comment

Comments

@vplasencia
Copy link
Member

vplasencia commented Dec 10, 2024

Description

Right now, the deployment of Semaphore subgraphs is a process that is done manually and there are several subgraphs, since the commands are always the same, the process can be automated.

@umangPokhriyall
Copy link

umangPokhriyall commented Dec 13, 2024

Hi @vplasencia,

I’ve reviewed the current manual deployment process and have a solution to automate it.

Current Manual Process:

  1. yarn codegen – Generates the subgraph.yaml file.
  2. yarn test – Tests the subgraph.
  3. yarn build – Builds the subgraph.
  4. yarn auth - Set the authorization code that links your account on thegraph.com.
    5 .yarn deploy – Deploys to the specified network.

Proposed Automation:
I’ve created a script to automate the process across multiple networks. The script will:

  1. Run yarn codegen for each network, generating the subgraph.yaml.
  2. Execute yarn test, graph build, yarn auth and yarn deploy in sequence.
  3. Loop through the networks, automating the build and deployment process.

This will make the deployment process fully automated.

Could you please assign this task to me? Let me know if you think any changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants