Skip to content

Commit

Permalink
ci: include migration step
Browse files Browse the repository at this point in the history
  • Loading branch information
High10Hunter committed Mar 13, 2024
1 parent d8084c6 commit e23b128
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e23b128

Please sign in to comment.