Skip to content

update workflo

update workflo #3

name: Apply schema migrations
on:
push:
branches:
- main
jobs:
apply_migrations:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
npm install
npm install -g drizzle-kit
- name: Apply migrations
run: drizzle-kit migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}