-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.13 KB
/
deploy-testing-subgraph.yaml
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
name: Deploy subgraph to testing env
on:
workflow_dispatch:
branches: [main]
push:
paths:
- packages/subgraph/**
jobs:
deploy:
if: github.ref_name == 'main'
runs-on: ubuntu-latest
name: Deploy subgraph
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}
- run: npm ci
- id: build
run: npm run build -- --cache-dir=".turbo"
- name: Authenticate The Graph CLI
run: npx graph auth --studio ${{ secrets.THE_GRAPH_ACCESS_TOKEN_TESTING }}
- name: Deploy subgraph to amoy
run: cd ./packages/subgraph && npm run deploy:testing:amoy
- name: Authenticate The Graph CLI
run: npx graph auth ${{ secrets.ORMI_0x_GRAPH_API_KEY_TESTING }}
- name: Deploy subgraph to sepolia
run: cd ./packages/subgraph && npm run deploy:testing:sepolia