Skip to content

Commit

Permalink
Merge pull request #72 from Giveth/main
Browse files Browse the repository at this point in the history
Merge pull request #71 from Giveth/develop
  • Loading branch information
geleeroyale authored May 24, 2024
2 parents 487968a + 5bc98ce commit 7fda14a
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/graph-studio-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Deploy <main branch> to Graph Studio

on:
push:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Lint
run: yarn lint

deploy-mainnet:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Generate Manifest
run: yarn generate-manifests
- uses: balancer-labs/[email protected]
with:
graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
graph_version_label: ${GITHUB_SHA::8}
graph_subgraph_name: 'giveth-giveconomy-mainnet'
graph_account: 'giveth'
graph_config_file: 'subgraph.production-mainnet.yaml'
graph_deploy_studio: true

deploy-gnosis:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Generate Manifest
run: yarn generate-manifests
- uses: balancer-labs/[email protected]
with:
graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
graph_version_label: ${GITHUB_SHA::8}
graph_subgraph_name: 'giveth-giveconomy-gnosischain'
graph_account: 'giveth'
graph_config_file: 'subgraph.production-gnosis.yaml'
graph_deploy_studio: true

deploy-optimism:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install
run: yarn --frozen-lockfile
- name: Generate Manifest
run: yarn generate-manifests
- uses: balancer-labs/[email protected]
with:
graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}}
graph_version_label: ${GITHUB_SHA::8}
graph_subgraph_name: 'giveth-giveconomy-optimism'
graph_account: 'giveth'
graph_config_file: 'subgraph.production-optimism-mainnet.yaml'
graph_deploy_studio: true

0 comments on commit 7fda14a

Please sign in to comment.