From 2b8df4fa1ba57efc09b9af0193b68a90dd28516b Mon Sep 17 00:00:00 2001 From: Faria Begum Riya Date: Sat, 2 Nov 2024 21:03:13 +0600 Subject: [PATCH] ci: add migration stage in github action --- .github/workflows/core-to-railway.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/core-to-railway.yml b/.github/workflows/core-to-railway.yml index 9963c151..75ed6abe 100644 --- a/.github/workflows/core-to-railway.yml +++ b/.github/workflows/core-to-railway.yml @@ -31,6 +31,12 @@ jobs: - name: Install Railway run: npm install -g @railway/cli + - name: Run Database Migrations + working-directory: ./misc/migrator + run: pnpm run migration up + env: + DATABASE_URL: ${{ secrets.DATABASE_PUBLIC_URL }} + - name: Deploy working-directory: ./apps/jonogon-core/ run: railway up --service jonogon-core