We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34ce6a0 commit b78bab0Copy full SHA for b78bab0
.github/workflows/database-migrations-dev.yml
@@ -0,0 +1,34 @@
1
+name: Database Migrations
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - dev
7
+ workflow_dispatch: # Allows manual triggering
8
9
+env:
10
+ BUN_VERSION: "1.0.26"
11
12
+jobs:
13
+ migrate:
14
+ name: Run Database Migrations
15
+ runs-on: ubuntu-latest
16
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
21
+ - name: Setup Bun
22
+ uses: oven-sh/setup-bun@v1
23
+ with:
24
+ bun-version: ${{ env.BUN_VERSION }}
25
26
+ - name: Install dependencies
27
+ run: bun install
28
29
+ - name: Apply database migrations
30
+ env:
31
+ DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
32
+ run: |
33
+ cd packages/db
34
+ bunx prisma migrate deploy
0 commit comments