Skip to content

Commit

Permalink
Merge branch 'main' into feat/code-review-request
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergalvao authored Dec 18, 2024
2 parents b7f9e4c + c9bf8ce commit f1a286c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/migrate-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Migrate Production

on:
workflow_dispatch:

jobs:
migrate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm install

- name: Apply all pending migrations to the database
working-directory: apps/api
run: npm run prisma:migrate:production
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

0 comments on commit f1a286c

Please sign in to comment.