Files
pezkuwi-subquery/.github/workflows/deploy.yml
T
Satoshi Qazi Muhammed ee88cc6bd4 ci: run Node 20, the version the host deploys with
CI ran Node 18 (out of support since 2025-04) while ops/host/subquery-deploy
runs subql codegen/build on the host's Node 20. serialize-javascript 7, which
the build now resolves, needs the global crypto that Node 18 does not have:
the build failed in CI and would have passed on the host.
2026-10-12 17:17:27 +04:00

77 lines
2.1 KiB
YAML

name: Deploy to SubQuery Network
on:
release:
types: [published]
workflow_dispatch:
inputs:
project:
description: 'Project to deploy'
required: true
default: 'all'
type: choice
options:
- all
- pezkuwi
- pezkuwi-assethub
env:
SUBQL_ACCESS_TOKEN: ${{ secrets.SUBQL_ACCESS_TOKEN }}
jobs:
deploy-pezkuwi:
if: ${{ github.event_name == 'release' || github.event.inputs.project == 'all' || github.event.inputs.project == 'pezkuwi' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Generate types
run: ./node_modules/.bin/subql codegen pezkuwi.yaml
- name: Build
run: ./node_modules/.bin/subql build pezkuwi.yaml
- name: Publish Pezkuwi Relay
run: ./node_modules/.bin/subql publish -f pezkuwi.yaml
deploy-assethub:
if: ${{ github.event_name == 'release' || github.event.inputs.project == 'all' || github.event.inputs.project == 'pezkuwi-assethub' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Generate types
run: ./node_modules/.bin/subql codegen pezkuwi.yaml
- name: Build
run: ./node_modules/.bin/subql build pezkuwi.yaml
- name: Publish Pezkuwi Asset Hub
run: ./node_modules/.bin/subql publish -f pezkuwi-assethub.yaml