From 7f243b426681350ef523549f34fc190dce565edd Mon Sep 17 00:00:00 2001 From: cp-dharti-r Date: Tue, 26 Mar 2024 16:59:55 +0530 Subject: [PATCH] Format yml file --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaf0d4c..ecf3c77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: "20.x" - - env: + + - name: Set up environment and build for admin + env: NEXT_PUBLIC_ADMIN_BASE_URL: ${{ secrets.ADMIN_BASE_URL }} NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} @@ -21,7 +23,7 @@ jobs: NEXT_PUBLIC_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} NEXT_PUBLIC_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} NEXT_PUBLIC_SUPABASE_STORAGE_URL: ${{ secrets.SUPABASE_STORAGE_URL }} - - run: | + run: | cd admin npm install npm run build @@ -33,10 +35,12 @@ jobs: - uses: actions/setup-node@v3 with: node-version: "20.x" - - env: + + - name: Set up environment and build for website + env: NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }} NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} - - run: | + run: | cd website npm install npm run build