This repository was archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
46 lines (45 loc) · 1.58 KB
/
graph_deploy.yaml
File metadata and controls
46 lines (45 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: DeployGraphs
on:
push:
branches:
- master
paths:
- contracts/**
- hmt_subgraph/**
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./hmt_subgraph
steps:
- uses: actions/checkout@v3
- name: Set up JS
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm install -g @graphprotocol/graph-cli
- run: npm run compile
- run: node ./scripts/generatenetworkssubgraphs.js matic
- run: npm run codegen
- run: graph auth --product hosted-service ${API_KEY}
env:
API_KEY: ${{ secrets.HP_GRAPH_API_KEY }}
- run: graph deploy --product hosted-service humanprotocol/polygon
- run: node ./scripts/generatenetworkssubgraphs.js goerli
- run: npm run codegen
- run: graph deploy --product hosted-service humanprotocol/goerli
- run: node ./scripts/generatenetworkssubgraphs.js moonbeam
- run: npm run codegen
- run: graph deploy --product hosted-service humanprotocol/moonbeam
- run: node ./scripts/generatenetworkssubgraphs.js bsc
- run: npm run codegen
- run: graph deploy --product hosted-service humanprotocol/bsc
- run: node ./scripts/generatenetworkssubgraphs.js chapel
- run: npm run codegen
- run: graph deploy --product hosted-service humanprotocol/bsctest
- run: node ./scripts/generatenetworkssubgraphs.js mumbai
- run: npm run codegen
- run: graph deploy --product hosted-service humanprotocol/mumbai