From cef65fa4a6a42fe931dfb83c7f787fb22c440484 Mon Sep 17 00:00:00 2001 From: ariefrahmansyah Date: Fri, 24 May 2024 21:14:34 +0700 Subject: [PATCH] fix .env value for database config --- .github/workflows/deploy-preview.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-preview.yaml b/.github/workflows/deploy-preview.yaml index 8b62ca7..ecc796a 100644 --- a/.github/workflows/deploy-preview.yaml +++ b/.github/workflows/deploy-preview.yaml @@ -45,8 +45,10 @@ jobs: run: | touch .env - echo DATABASE_URL=${{ steps.create-branch.outputs.db_url_with_pooler }}?sslmode=require >> .env - echo DIRECT_URL=${{ steps.create-branch.outputs.db_url }}?sslmode=require >> .env + echo PG_HOST=${{ steps.create-branch.outputs.host }} >> .env + echo PG_DATABASE=${{ env.NEON_DATABASE_NAME }} >> .env + echo PG_USER=${{ env.NEON_DATABASE_USERNAME }} >> .env + echo PG_PASSWORD=${{ steps.create-branch.outputs.password }} >> .env npm run db:generate npm run db:push