Skip to content

Commit 417ecaf

Browse files
committed
use composite run steps
1 parent f73d979 commit 417ecaf

3 files changed

Lines changed: 14 additions & 34 deletions

File tree

action.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,16 @@ outputs:
2121
success:
2222
description: "The Success/Failure of the action"
2323
runs:
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

index.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)