File tree Expand file tree Collapse file tree 2 files changed +41
-34
lines changed Expand file tree Collapse file tree 2 files changed +41
-34
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Subgraph - Live
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ network :
7+ description : The network to deploy the subgraph to
8+ required : true
9+ default : " goerli"
10+ type : choice
11+ options :
12+ - mainnet
13+ - goerli
14+
15+ jobs :
16+ deploy-production :
17+ runs-on : ubuntu-latest
18+ environment : production
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v3
22+
23+ - name : Set up Node.js
24+ uses : actions/setup-node@v2
25+ with :
26+ node-version : 16
27+
28+ - name : Install dependencies
29+ run : yarn install
30+
31+ - name : Build subgraph
32+ run : |
33+ export NETWORK_NAME=${{ inputs.network }}
34+ yarn codegen
35+ yarn build
36+
37+ - name : Authenticate with TheGraph
38+ run : yarn graph auth https://api.thegraph.com/deploy/ ${{ secrets.SUBGRAPH_AUTH_TOKEN }}
39+
40+ - name : Deploy subgraph
41+ run : yarn deploy
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments