Skip to content

Merge pull request #825 from divaprotocol/update-subgraph-readme #36

Merge pull request #825 from divaprotocol/update-subgraph-readme

Merge pull request #825 from divaprotocol/update-subgraph-readme #36

on:
push:
branches:
- main
paths:
- packages/*-subgraph/**/*
name: Deploy production subgraph
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Cache Node Modules and ABIs
uses: actions/cache@v2
with:
path: |
**/node_modules
**/.yarn/cache
**/abis
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '**/package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Verify Node.js and Yarn Versions
run: |
node -v
yarn -v
- name: Authenticate with The Graph and Deploy
env:
THEGRAPH_ACCESS_TOKEN: ${{ secrets.THEGRAPH_ACCESS_TOKEN_PROD }}
run: |
yarn graph:auth
yarn turbo run deploy --scope="@diva/*-subgraph"