Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ jobs:
- name: Install dependencies
run: bun install --frozen --ignore-scripts

- name: Ensure database extensions
working-directory: packages/db
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_UNPOOLED }}
run: |
bun --eval '
import { neon } from "@neondatabase/serverless";

const sql = neon(process.env.DATABASE_URL);
await sql`CREATE EXTENSION IF NOT EXISTS pg_trgm`;
'

- name: Run database migrations
working-directory: packages/db
env:
Expand Down Expand Up @@ -474,7 +486,13 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: bunx wrangler deploy
run: |
if [ -z "$CLOUDFLARE_API_TOKEN" ] || [ -z "$CLOUDFLARE_ACCOUNT_ID" ]; then
echo "Skipping Cloudflare worker deploy because Cloudflare credentials are not configured."
exit 0
fi

bunx wrangler deploy

deploy-docs:
name: Deploy Docs to Vercel
Expand Down
Loading