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 3455c3c commit fb15ee0Copy full SHA for fb15ee0
1 file changed
.github/workflows/ci.yml
@@ -2,9 +2,9 @@ name: CI
2
3
on:
4
push:
5
- branches: [main]
+ branches: [main, staging]
6
pull_request:
7
8
9
jobs:
10
test:
@@ -56,7 +56,7 @@ jobs:
56
migrations:
57
name: Apply Database Migrations
58
runs-on: ubuntu-latest
59
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
+ if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging')
60
needs: test
61
steps:
62
- name: Checkout code
@@ -73,5 +73,5 @@ jobs:
73
- name: Apply migrations
74
working-directory: ./apps/sim
75
env:
76
- DATABASE_URL: ${{ secrets.DATABASE_URL }}
+ DATABASE_URL: ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || secrets.STAGING_DATABASE_URL }}
77
run: bunx drizzle-kit push
0 commit comments