Skip to content

release 1.2.14 (#268) #50

release 1.2.14 (#268)

release 1.2.14 (#268) #50

name: Dev Deploy Subgraph
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test-subgraph:
name: Run Unit Test Workflow
runs-on: ubuntu-latest
environment: development
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run test
id: test
uses: ./.github/actions/testSubgraph
dev-deploy-subgraph:
name: Deploy subgraph workflow
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install the graph cli
run: npm install @graphprotocol/graph-cli
- name: Authenticate with dev subgraph
run: |
npx graph auth --product hosted-service ${{ secrets.DEV_SUBGRAPH_API_KEY }}
- name: Install subgraph dependencies
working-directory: ./subgraph
run: npm install
- name: Prepare for dev subgraph deployment
working-directory: ./subgraph
run: npm run prepare-dev
- name: Deploy dev subgraph
working-directory: ./subgraph
run: npm run deploy-dev