Coder Social home page Coder Social logo

goldsky-deploy's Introduction

goldsky-deploy

A Github Action for deploying subgraphs to Goldsky.

How to use

See the Goldsky ethereum-blocks repo for an example.

You will need to get an API key from https://app.goldsky.com and set that up as a Github Repository Secret.

In order to deploy your subgraph to Goldsky you will have to first build it. Here's an example of how to do that:

      - name: Install node
        uses: actions/setup-node@v4
        with:
          node-version: 18
          cache: "npm"
      - name: Install dependencies
        run: npm install
      - name: codegen
        run: npm run codegen
      - name: build
        run: npm run build

Once your subgraph is built, you can then use the goldsky-deploy action to run the deployment.

      - name: Deploy Subgraph
        uses: goldsky-io/goldsky-deploy@latest
        with:
          api_key: ${{ secrets.GOLDSKY_API_KEY }}
          subgraph_name: "ethereum-blocks"
          path: "."

There are 3 parameters to the action:

  1. api_key: Required. The API key you got from Goldsky. This is best stored as a repository secret and referenced as ${{ secrets.GOLDSKY_API_KEY }}.
  2. subgraph_name: Required. The name of the subgraph you are deploying. This will be displayed in the Goldsky UI.
  3. path: Optional. The path to the subgraph you are deploying - this can either point directly to the build directory or to the parent of the build directory. Defaults to ..

Note that the version of the subgraph that's deployed will be the short SHA of the commit from which the action was invoked.

goldsky-deploy's People

Contributors

paymog avatar

Watchers

Kevin Li avatar jling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.