mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
* improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier]
* improvement(ci): ensure atomicity in trigger deploys, improve overall ci organization
* Revert "improvement(chat): deployed chat no longer uses subdomains, uses sim.ai/chat/[identifier]"
This reverts commit c68c052601.
---------
Co-authored-by: waleed <waleed>
28 lines
675 B
YAML
28 lines
675 B
YAML
name: Database Migrations
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
migrate:
|
|
name: Apply Database Migrations
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Apply migrations
|
|
working-directory: ./packages/db
|
|
env:
|
|
DATABASE_URL: ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || secrets.STAGING_DATABASE_URL }}
|
|
run: bunx drizzle-kit migrate --config=./drizzle.config.ts |