Skip to content

Commit

Permalink
fix .env value for database config
Browse files Browse the repository at this point in the history
  • Loading branch information
ariefrahmansyah committed May 24, 2024
1 parent 07241e0 commit cef65fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cef65fa

Please sign in to comment.