add script for deploying to optimism production #13
This file contains hidden or 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 <develop branch> to Graph Studio | |
| on: | |
| push: | |
| branches: [develop] | |
| 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-staging-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/graph-deploy@v0.0.1 | |
| with: | |
| graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} | |
| graph_version_label: ${GITHUB_SHA::8} | |
| graph_subgraph_name: 'giveconomy-staging-gnosischain' | |
| graph_account: 'giveth' | |
| graph_config_file: 'subgraph.deployment-7-gnosis.yaml' | |
| graph_deploy_studio: true | |
| deploy-staging-optimism-sepolia: | |
| 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/graph-deploy@v0.0.1 | |
| with: | |
| graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} | |
| graph_version_label: ${GITHUB_SHA::8} | |
| graph_subgraph_name: 'giveconomy-staging-op-sepolia' | |
| graph_account: 'giveth' | |
| graph_config_file: 'subgraph.deployment-7-optimism-sepolia.yaml' | |
| graph_deploy_studio: true |