From 8296fcae21a8ef7c834698b873eb1e59bef15517 Mon Sep 17 00:00:00 2001 From: Ludovic Levalleux Date: Thu, 1 Aug 2024 11:24:02 +0100 Subject: [PATCH] some adaptation --- .github/workflows/deploy-prod-subgraph.yaml | 2 +- .github/workflows/deploy-staging-subgraph.yaml | 4 +--- .github/workflows/deploy-testing-subgraph.yaml | 4 +--- packages/subgraph/package.json | 4 +++- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-prod-subgraph.yaml b/.github/workflows/deploy-prod-subgraph.yaml index 757d45463..f0de26cbe 100644 --- a/.github/workflows/deploy-prod-subgraph.yaml +++ b/.github/workflows/deploy-prod-subgraph.yaml @@ -34,7 +34,7 @@ jobs: - id: build run: npm run build -- --cache-dir=".turbo" - name: Authenticate The Graph CLI - run: npx graph auth ${{ secrets.ORMI_0x_GRAPH_API_KEY_PRODUCTION }} + run: npx graph auth https://api.0xgraph.xyz/deploy/ ${{ secrets.ORMI_0x_GRAPH_API_KEY_PRODUCTION }} - name: Deploy subgraph to Polygon run: cd ./packages/subgraph && npm run deploy:production - name: Deploy subgraph to Ethereum diff --git a/.github/workflows/deploy-staging-subgraph.yaml b/.github/workflows/deploy-staging-subgraph.yaml index 2a093ce58..290296b0c 100644 --- a/.github/workflows/deploy-staging-subgraph.yaml +++ b/.github/workflows/deploy-staging-subgraph.yaml @@ -29,10 +29,8 @@ jobs: - id: build run: npm run build -- --cache-dir=".turbo" - name: Authenticate The Graph CLI - run: npx graph auth --studio ${{ secrets.THE_GRAPH_ACCESS_TOKEN_STAGING }} + run: npx graph auth https://api.0xgraph.xyz/deploy/ ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} - name: Deploy subgraph to amoy run: cd ./packages/subgraph && npm run deploy:staging:amoy - - name: Authenticate The Graph CLI - run: npx graph auth ${{ secrets.ORMI_0x_GRAPH_API_KEY_STAGING }} - name: Deploy subgraph to sepolia run: cd ./packages/subgraph && npm run deploy:staging:sepolia diff --git a/.github/workflows/deploy-testing-subgraph.yaml b/.github/workflows/deploy-testing-subgraph.yaml index 50d5f0e4a..e2e118335 100644 --- a/.github/workflows/deploy-testing-subgraph.yaml +++ b/.github/workflows/deploy-testing-subgraph.yaml @@ -30,10 +30,8 @@ jobs: - id: build run: npm run build -- --cache-dir=".turbo" - name: Authenticate The Graph CLI - run: npx graph auth --studio ${{ secrets.THE_GRAPH_ACCESS_TOKEN_TESTING }} + run: npx graph auth https://api.0xgraph.xyz/deploy/ ${{ secrets.ORMI_0x_GRAPH_API_KEY_TESTING }} - name: Deploy subgraph to amoy run: cd ./packages/subgraph && npm run deploy:testing:amoy - - name: Authenticate The Graph CLI - run: npx graph auth ${{ secrets.ORMI_0x_GRAPH_API_KEY_TESTING }} - name: Deploy subgraph to sepolia run: cd ./packages/subgraph && npm run deploy:testing:sepolia diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 6138fdb61..4b1e091bb 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -28,7 +28,9 @@ "create:local": "graph create --node http://localhost:8020/ boson/corecomponents", "remove:local": "graph remove --node http://localhost:8020/ boson/corecomponents", "deploy:local": "npm run manifest:local && npm run create:local && graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 boson/corecomponents -l 0.0.1", - "deploy:testing:amoy": "npm run manifest:testing:amoy && graph deploy --node https://api.0xgraph.xyz/deploy --ipfs https://api.0xgraph.xyz/ipfs -l v0.0.1 boson-testing-amoy", + "deploy:testing:amoy": "run-script-os", + "deploy:testing:amoy:default": "npm run manifest:testing:amoy && graph deploy --node https://api.0xgraph.xyz/deploy --ipfs https://api.0xgraph.xyz/ipfs -l $npm_package_version boson-testing-amoy", + "deploy:testing:amoy:win32": "npm run manifest:testing:amoy && graph deploy --node https://api.0xgraph.xyz/deploy --ipfs https://api.0xgraph.xyz/ipfs -l %npm_package_version% boson-testing-amoy", "deploy:testing:sepolia": "run-script-os", "deploy:testing:sepolia:default": "npm run manifest:testing:sepolia && graph deploy --node https://api.0xgraph.xyz/deploy --ipfs https://api.0xgraph.xyz/ipfs -l $npm_package_version boson-testing-sepolia", "deploy:testing:sepolia:win32": "npm run manifest:testing:sepolia && graph deploy --node https://api.0xgraph.xyz/deploy --ipfs https://api.0xgraph.xyz/ipfs -l %npm_package_version% boson-testing-sepolia",