File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,8 +21,16 @@ outputs:
2121 success :
2222 description : " The Success/Failure of the action"
2323runs :
24- using : " node12"
25- main : ' index.js'
26- # steps:
27- # - id: deploy
28- # run: graph deploy ${{inputs.graph_account}}/${{inputs.graph_subgraph_name}} ${{graph_config_file}} --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/
24+ using : " composite"
25+ steps :
26+ - id : install-graph-cli
27+ run : |
28+ yarn global add @graphprotocol/graph-cli
29+ echo "$(yarn global bin)" >> $GITHUB_PATH
30+ shell : bash
31+ # - id: auth # cannot launch auth without x11. Passing access token as a param in next step as a workaround
32+ # run: graph auth https://api.thegraph.com/deploy/ ${{inputs.graph_access_token}}
33+ # shell: bash
34+ - id : deploy
35+ run : graph deploy --access-token ${{inputs.graph_access_token}} ${{inputs.graph_account}}/${{inputs.graph_subgraph_name}} ${{inputs.graph_config_file}} --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/
36+ shell : bash
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "name" : " graph-deploy" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.1.0 " ,
44 "description" : " A simple github action that deploys a subgraph to the graph" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments