From dd7643de408bd55038652b71b8d649ab089dd055 Mon Sep 17 00:00:00 2001 From: Pierre Bertet Date: Fri, 12 Apr 2024 11:49:43 +0100 Subject: [PATCH] testnet-deployment.yml: fix paths --- .github/workflows/testnet-deployment.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/testnet-deployment.yml b/.github/workflows/testnet-deployment.yml index 925542aa..81c1c5f6 100644 --- a/.github/workflows/testnet-deployment.yml +++ b/.github/workflows/testnet-deployment.yml @@ -95,16 +95,18 @@ jobs: - name: Prepare Environment from Latest Deployment Context working-directory: contracts + env: + APP_ENV_FILE: ../frontend/.env.local + DEPLOYMENT_CONTEXT_FILE: deployment-context-latest.json run: | - echo 'NEXT_PUBLIC_CHAIN_ID=1337' >> frontend/.env.local - echo 'NEXT_PUBLIC_CHAIN_NAME=Liquity Testnet' >> frontend/.env.local - echo 'NEXT_PUBLIC_CHAIN_CURRENCY=Ether|ETH|18' >> frontend/.env.local - echo 'NEXT_PUBLIC_CHAIN_RPC_URL=https://testnet.liquity.org/rpc' >> frontend/.env.local - echo 'NEXT_PUBLIC_CHAIN_BLOCK_EXPLORER=https://testnet.liquity.org/' >> frontend/.env.local - echo 'NEXT_PUBLIC_CHAIN_CONTRACT_MULTICALL=0xffB2BAa708261533b51D18394fd8AFd0E32aBC55|488' >> frontend/.env.local - echo '' >> frontend/.env.local - - pnpm tsx utils/deployment-artifacts-to-app-env.ts deployment-context-latest.json ../frontend/.env.local --append + echo 'NEXT_PUBLIC_CHAIN_ID=1337' >> $APP_ENV_FILE + echo 'NEXT_PUBLIC_CHAIN_NAME=Liquity Testnet' >> $APP_ENV_FILE + echo 'NEXT_PUBLIC_CHAIN_CURRENCY=Ether|ETH|18' >> $APP_ENV_FILE + echo 'NEXT_PUBLIC_CHAIN_RPC_URL=https://testnet.liquity.org/rpc' >> $APP_ENV_FILE + echo 'NEXT_PUBLIC_CHAIN_BLOCK_EXPLORER=https://testnet.liquity.org/' >> $APP_ENV_FILE + echo 'NEXT_PUBLIC_CHAIN_CONTRACT_MULTICALL=0xffB2BAa708261533b51D18394fd8AFd0E32aBC55|488' >> $APP_ENV_FILE + + pnpm tsx utils/deployment-artifacts-to-app-env.ts $DEPLOYMENT_CONTEXT_FILE $APP_ENV_FILE --append - name: Pull Vercel Environment Information working-directory: frontend