From 47807692f698ddf5a7332e61328b11ecc947f43c Mon Sep 17 00:00:00 2001 From: NanezX Date: Tue, 19 Dec 2023 20:18:15 -0400 Subject: [PATCH] use direct auth --- .github/workflows/subgraph.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/subgraph.yaml b/.github/workflows/subgraph.yaml index d735f2560..cb2b737fa 100644 --- a/.github/workflows/subgraph.yaml +++ b/.github/workflows/subgraph.yaml @@ -99,10 +99,6 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@v2 - - name: Debugging - run: | - echo "THE_GRAPH_API_TOKEN: $THE_GRAPH_API_TOKEN" - - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: @@ -119,11 +115,11 @@ jobs: working-directory: ./subgraph run: nix run .#init-setup + - name: Graph Authentication + run: npx graph auth --product hosted-service $THE_GRAPH_API_TOKEN + - name: Deploy subgraph mumbai working-directory: ./subgraph run: | nix run .#rain_cli 'subgraph build --network mumbai --address 0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24 --block 43347207' - nix run .#rain_cli \ - --argstr token_access "$THE_GRAPH_API_TOKEN" \ - --subgraph deploy --subgraph-name rainlanguage/interpreter-registry-npe2 --token-access $token_access - # nix run .#rain_cli "subgraph deploy --subgraph-name rainlanguage/interpreter-registry-npe2 --token-access $THE_GRAPH_API_TOKEN" \ No newline at end of file + nix run .#rain_cli 'subgraph deploy --subgraph-name rainlanguage/interpreter-registry-npe2'