@bosonprotocol/react-kit@0.42.2 #599
Workflow file for this run
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 subgraph to staging env | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| jobs: | |
| deploy: | |
| if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, '@bosonprotocol/subgraph@') | |
| runs-on: ubuntu-latest | |
| name: Deploy subgraph | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.BSNORG_ACTIONS_SECRET }} | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "24" | |
| cache: "npm" | |
| - name: Turbo Cache | |
| id: turbo-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: .turbo | |
| key: turbo-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-${{ runner.os }} | |
| - run: npm ci | |
| - id: build | |
| run: npm run build -- --cache-dir=".turbo" | |
| - name: Set github bot | |
| run: | | |
| git config user.name 'github-actions[bot]' | |
| git config user.email 'github-actions[bot]@users.noreply.github.com' | |
| - name: Deploy subgraph to amoy | |
| run: cd ./packages/subgraph && npm run deploy:staging:amoy | |
| env: | |
| ORMI_0x_GRAPH_API_KEY: ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} | |
| - name: Deploy subgraph to sepolia | |
| run: cd ./packages/subgraph && npm run deploy:staging:sepolia | |
| env: | |
| ORMI_0x_GRAPH_API_KEY: ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} | |
| - name: Deploy subgraph to base sepolia | |
| run: cd ./packages/subgraph && npm run deploy:staging:base | |
| env: | |
| ORMI_0x_GRAPH_API_KEY: ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} | |
| - name: Deploy subgraph to optimism sepolia | |
| run: cd ./packages/subgraph && npm run deploy:staging:optimism | |
| env: | |
| ORMI_0x_GRAPH_API_KEY: ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} | |
| - name: Deploy subgraph to arbitrum sepolia | |
| run: cd ./packages/subgraph && npm run deploy:staging:arbitrum | |
| env: | |
| ORMI_0x_GRAPH_API_KEY: ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} | |
| - name: Commit & Push | |
| env: | |
| GH_TOKEN: ${{ secrets.BSNORG_ACTIONS_SECRET }} | |
| GITHUB_TOKEN: ${{ secrets.BSNORG_ACTIONS_SECRET }} | |
| run: | | |
| git add . | |
| git commit -m "chore: deploy staging subgraphs [skip ci]" | |
| git push origin HEAD:main |