Merge pull request #992 from trycompai/main #110
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Database Migrations | |
| on: | |
| push: | |
| branches: | |
| - release | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| migrate: | |
| name: Run Database Migrations | |
| runs-on: ubuntu-latest-custom | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Apply database migrations | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }} | |
| run: | | |
| cd packages/db | |
| npx prisma migrate deploy |