From 6847948510107419c9f9042940d28b2e88c9100e Mon Sep 17 00:00:00 2001 From: William Muli Date: Wed, 20 Sep 2023 14:47:14 +0300 Subject: [PATCH] Update env variable names in workflow file --- .github/workflows/preview.yaml | 3 ++- .github/workflows/production.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 4c4ee72..bea858c 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -22,6 +22,7 @@ jobs: - name: Apply all pending migrations to the database run: npx prisma migrate deploy env: - DATABASE_URL: ${{ secrets.POSTGRES_URL_NON_POOLING }} + POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }} + POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index a55b248..0dfbdac 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -22,6 +22,7 @@ jobs: - name: Apply all pending migrations to the database run: npx prisma migrate deploy env: - DATABASE_URL: ${{ secrets.POSTGRES_URL_NON_POOLING }} + POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }} + POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}