|
| 1 | +name: Deploy <main branch> to Graph Studio |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + |
| 7 | +jobs: |
| 8 | + lint: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - uses: actions/checkout@v2 |
| 12 | + - name: Install node |
| 13 | + uses: actions/setup-node@v1 |
| 14 | + with: |
| 15 | + node-version: 18 |
| 16 | + - name: Install |
| 17 | + run: yarn --frozen-lockfile |
| 18 | + - name: Lint |
| 19 | + run: yarn lint |
| 20 | + |
| 21 | + deploy-mainnet: |
| 22 | + needs: lint |
| 23 | + runs-on: ubuntu-latest |
| 24 | + steps: |
| 25 | + - uses: actions/checkout@v2 |
| 26 | + - name: Install node |
| 27 | + uses: actions/setup-node@v1 |
| 28 | + with: |
| 29 | + node-version: 18 |
| 30 | + - name: Install |
| 31 | + run: yarn --frozen-lockfile |
| 32 | + - name: Generate Manifest |
| 33 | + run: yarn generate-manifests |
| 34 | + - uses: balancer-labs/[email protected] |
| 35 | + with: |
| 36 | + graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} |
| 37 | + graph_version_label: ${GITHUB_SHA::8} |
| 38 | + graph_subgraph_name: 'giveth-giveconomy-mainnet' |
| 39 | + graph_account: 'giveth' |
| 40 | + graph_config_file: 'subgraph.production-mainnet.yaml' |
| 41 | + graph_deploy_studio: true |
| 42 | + |
| 43 | + deploy-gnosis: |
| 44 | + needs: lint |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v2 |
| 48 | + - name: Install node |
| 49 | + uses: actions/setup-node@v1 |
| 50 | + with: |
| 51 | + node-version: 18 |
| 52 | + - name: Install |
| 53 | + run: yarn --frozen-lockfile |
| 54 | + - name: Generate Manifest |
| 55 | + run: yarn generate-manifests |
| 56 | + - uses: balancer-labs/[email protected] |
| 57 | + with: |
| 58 | + graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} |
| 59 | + graph_version_label: ${GITHUB_SHA::8} |
| 60 | + graph_subgraph_name: 'giveth-giveconomy-gnosischain' |
| 61 | + graph_account: 'giveth' |
| 62 | + graph_config_file: 'subgraph.production-gnosis.yaml' |
| 63 | + graph_deploy_studio: true |
| 64 | + |
| 65 | + deploy-optimism: |
| 66 | + needs: lint |
| 67 | + runs-on: ubuntu-latest |
| 68 | + steps: |
| 69 | + - uses: actions/checkout@v2 |
| 70 | + - name: Install node |
| 71 | + uses: actions/setup-node@v1 |
| 72 | + with: |
| 73 | + node-version: 18 |
| 74 | + - name: Install |
| 75 | + run: yarn --frozen-lockfile |
| 76 | + - name: Generate Manifest |
| 77 | + run: yarn generate-manifests |
| 78 | + - uses: balancer-labs/[email protected] |
| 79 | + with: |
| 80 | + graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} |
| 81 | + graph_version_label: ${GITHUB_SHA::8} |
| 82 | + graph_subgraph_name: 'giveth-giveconomy-optimism' |
| 83 | + graph_account: 'giveth' |
| 84 | + graph_config_file: 'subgraph.production-optimism-mainnet.yaml' |
| 85 | + graph_deploy_studio: true |
0 commit comments