chore: migrate Mantle to 0xGraph (#101) #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy subgraph | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
deploy-thegraph-studio: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
chain: | |
- "arbitrum-one" | |
- "avalanche" | |
- "base" | |
- "bsc" | |
- "celo" | |
- "fantom" | |
- "fuse" | |
- "mainnet" | |
- "matic" | |
- "moonbeam" | |
- "near" | |
- "near-testnet" | |
- "optimism" | |
- "sepolia" | |
- "xdai" | |
- "zksyncera" | |
environment: | |
name: ${{ matrix.chain }} | |
url: ${{ format('https://api.studio.thegraph.com/query/67444/request-payments-{0}/version/latest', matrix.chain) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/deploy | |
with: | |
chain: ${{ matrix.chain }} | |
deploy-key: ${{ secrets.SUBGRAPH_STUDIO_DEPLOY_KEY_RN }} | |
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: actions/checkout@v4 | |
- uses: ./.github/actions/deploy | |
with: | |
chain: "core" | |
deploy-key: ${{ secrets.THEGRAPH_CORE_TOKEN }} | |
deploy-mantle: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
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: actions/checkout@v4 | |
- uses: ./.github/actions/deploy | |
with: | |
chain: ${{ matrix.chain }} | |
deploy-key: "" |