From e23b128482d10f43fb882b1cb9024df1ada58271 Mon Sep 17 00:00:00 2001 From: Tran Dai Quy Date: Wed, 13 Mar 2024 21:47:47 +0700 Subject: [PATCH] ci: include migration step --- .github/workflows/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 748195e..874bac7 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -30,11 +30,12 @@ jobs: runs-on: self-hosted steps: - - name: run migrations - run: cd backend && npm run knex migrate:latest - name: Copy .env file run: cp ~/env/.env backend/.env + - name: run migrations + run: cd backend && npm run knex migrate:latest + - name: Restart api server run: cd backend && pm2 restart api --update-env