Skip to content

github action to deploy subgraphs to the graph

Notifications You must be signed in to change notification settings

0xMegie/graph-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graph-deploy

GitHub action that deploys a subgraph to the graph protocol to index Ethereum and IPFS as graphql

Set your thegraph.com access token as a github secret in your repository, and add .github/workflows/graph.yml:

name: Deploy Graph

on:
  push:
    branches: main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install node
        uses: actions/setup-node@v1
        with:
          node-version: 14
      - name: Install
        run: yarn --frozen-lockfile
      - name: Codegen
        run: yarn codegen
      - name: Build
        run: yarn build
      - uses: gtaschuk/[email protected]
        with:
          graph_access_token: ${{secrets.GRAPH_ACCESS_TOKEN}}
          graph_subgraph_name: "your-subgraph-name"
          graph_deploy_studio: "true"
          graph_account: "your-github-name-or-organization"
          graph_config_file: "subgraph.yml"

About

github action to deploy subgraphs to the graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published