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