Skip to content

Support Cronos (#13) #15

Support Cronos (#13)

Support Cronos (#13) #15

Workflow file for this run

name: Build
on:
push:
branches:
- master
jobs:
build_test_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@oriumnetwork'
- name: Install Dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GHB_TOKEN }}
- name: Lint
run: npm run lint
- name: Subgraph Auth
run: yarn graph:auth -- ${{ secrets.THEGRAPH_API_KEY }}
- name: Build Mumbai
run: npm run build:mumbai
- name: Deploy Mumbai Hosted Service
run: npm run deploy:mumbai
- name: Build Cronos
run: npm run build:cronos-mainnet
- name: Deploy Self-hosted Cronos
run: npx graph deploy --node ${{ secrets.SELF_HOSTED_SUBGRAPH_URL }} --version-label ${{ github.sha }} cronos-mainnet_prod_nft-roles
- name: Build Polygon
run: npm run build:polygon
- name: Test
run: npm run test
- name: Subgraph Deploy Polygon Satsuma
run: npx graph deploy polygon-roles-registry --version-label ${{ github.sha }} --node https://subgraphs.alchemy.com/api/subgraphs/deploy --ipfs https://ipfs.satsuma.xyz --deploy-key ${{ secrets.SATSUMA_DEPLOY_KEY }}
- name: Subgraph Promote Polygon Satsuma
run: |
curl -X POST https://subgraphs.alchemy.com/api/subgraphs/8c268d3e8b83112a7d0c732a9b88ba1c732da600bffaf68790171b9a0b5d5394/polygon-roles-registry/${{ github.sha }}/auto-promote-live -H "Content-Type: application/json" -H "x-api-key: ${{ secrets.SATSUMA_DEPLOY_KEY }}"