Skip to content

Deploy subgraph

Deploy subgraph #49

Workflow file for this run

name: Deploy subgraph
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy-hosted-service:
runs-on: ubuntu-latest
strategy:
matrix:
chain:
- "arbitrum-one"
- "avalanche"
- "bsc"
- "celo"
- "core"
- "fantom"
- "fuse"
- "goerli"
- "mainnet"
- "matic"
- "xdai"
- "optimism"
- "moonbeam"
- "tombchain"
environment:
name: ${{ matrix.chain }}
# Use TheGraph Hosted Service for all networks
url: ${{ format('https://thegraph.com/hosted-service/subgraph/requestnetwork/request-payments-{0}', matrix.chain) }}
steps:
- uses: ./.github/actions/deploy
with:
- chain: ${{ matrix.chain }}

Check failure on line 34 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / Deploy subgraph

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 34, Col: 11): A sequence was not expected .github/workflows/deploy.yaml (Line: 45, Col: 11): A sequence was not expected
- token: ${{ secrets.THEGRAPH_TOKEN }}
deploy-core:
runs-on: ubuntu-latest
environment:
name: core
# Use Core DAO Foundation graph node for Core
url: "https://thegraph.coredao.org/subgraphs/name/requestnetwork/request-payments-core"
steps:
- uses: ./.github/actions/deploy
with:
- chain: "core"
- token: ${{ secrets.THEGRAPH_CORE_TOKEN }}
deploy-mantle:
runs-on: ubuntu-latest
strategy:
matrix:
chain:
- "mantle-testnet"
- "mantle"
environment:
name: ${{ matrix.chain }}
# Use Mantle Foundation graph node for Mantle Testnet
# Use FuxionX graph node for Mantle
url: ${{ matrix.chain == 'mantle-testnet' && 'https://graph.testnet.mantle.xyz/subgraphs/name/requestnetwork/request-payments-mantle-testnet' || matrix.chain == 'mantle' && 'https://graph.fusionx.finance/subgraphs/name/requestnetwork/request-payments-mantle' }}
steps:
- uses: ./.github/actions/deploy
with:
- chain: ${{ matrix.chain }}
- token: ""