diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fa85c67..1c7c83f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,25 +11,23 @@ on: jobs: build: runs-on: ubuntu-latest - name: Build Next.js App - steps: - - name: Checkout repository + - name: Checkout code uses: actions/checkout@v2 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: - node-version: '18' + node-version: '16' - name: Install dependencies run: yarn install + env: + NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} - name: Build the app run: yarn build - - - name: Upload build artifacts - uses: actions/upload-artifact@v3 - with: - name: nextjs-build - path: .next \ No newline at end of file + env: + NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} + NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} \ No newline at end of file