Skip to content

Commit

Permalink
Merge pull request #92 from podcodar/nicolasbrandao/migrate-db-to-prod
Browse files Browse the repository at this point in the history
Create Migrate Production DB Job
  • Loading branch information
nicolasbrandao authored Mar 27, 2024
2 parents 7587d39 + 3cc9876 commit 6a8a333
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci-migrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Migrate Production

on:
push:
branches:
- main

jobs:
migrate_production:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Build node env
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm install

- name: Generate and Migrate
run: npm run db:generate && npm run db:migrate deploy
env:
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}

0 comments on commit 6a8a333

Please sign in to comment.