-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (40 loc) · 1.17 KB
/
dev-deploy-subgraph.yml
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
47
name: Dev Deploy Subgraph
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test-subgraph:
name: Run Unit Test Workflow
runs-on: ubuntu-latest
environment: development
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run test
id: test
uses: ./.github/actions/testSubgraph
dev-deploy-subgraph:
name: Deploy subgraph workflow
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install the graph cli
run: npm install @graphprotocol/graph-cli
- name: Authenticate with dev subgraph
run: |
npx graph auth --product hosted-service ${{ secrets.DEV_SUBGRAPH_API_KEY }}
- name: Install subgraph dependencies
working-directory: ./subgraph
run: npm install
- name: Prepare for dev subgraph deployment
working-directory: ./subgraph
run: npm run prepare-dev
- name: Deploy dev subgraph
working-directory: ./subgraph
run: npm run deploy-dev