Skip to content

Commit

Permalink
updt
Browse files Browse the repository at this point in the history
  • Loading branch information
Somnath-Chattaraj committed Jul 29, 2024
1 parent 8ef03f0 commit ea58db4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Build and Migrate
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
build:
Expand All @@ -22,23 +22,20 @@ jobs:
node-version: '20'
cache: 'npm'

- name: Navigate to backend directory
run: cd backend

- name: Install dependencies
run: npm install
working-directory: backend
working-directory: ./backend

- name: Build code
run: npm run build
working-directory: backend
working-directory: ./backend

- name: Set up Prisma
run: npx prisma generate
working-directory: backend
working-directory: ./backend

- name: Run Prisma Migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: npx prisma migrate deploy
working-directory: backend
working-directory: ./backend

0 comments on commit ea58db4

Please sign in to comment.