From a3f891d939d120e102819bc8d8b59b456d24a4f5 Mon Sep 17 00:00:00 2001 From: Sanjay Soundarajan Date: Mon, 9 Dec 2024 12:25:06 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20add=20prisma=20migrate=20t?= =?UTF-8?q?o=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-staging.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index cff31bc..b6cd65e 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -202,4 +202,27 @@ jobs: # Deploy the app for all other times - run: kamal redeploy - # - run: kamal redeploy --verbose \ No newline at end of file + # - run: kamal redeploy --verbose + + migrate-db: + runs-on: ubuntu-latest + environment: stg + defaults: + run: + working-directory: ui + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' + + - run: yarn install + + - run: yarn prisma:generate + + - run: yarn prisma:migrate:deploy \ No newline at end of file