Use --workdir apps for all Supabase CLI commands

CLI expects supabase/functions/ relative to workdir, so --workdir apps
makes it find apps/supabase/functions/.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jjbruntonandClaude Opus 4.5 committed 2026-01-24 21:43:19 +00:00
1 parent dcf5588d55
commit 5ae776d921
1 file changed
+4 -7
+4 -7
View File
@@ -29,12 +29,10 @@ jobs:
version: latest version: latest
- name: Link to Production Project - name: Link to Production Project
run: supabase link --project-ref $SUPABASE_PROJECT_REF run: supabase link --project-ref $SUPABASE_PROJECT_REF --workdir apps
working-directory: apps/supabase
- name: Apply Database Migrations - name: Apply Database Migrations
run: supabase db push run: supabase db push --workdir apps
working-directory: apps/supabase
- name: Sync Edge Function Secrets - name: Sync Edge Function Secrets
env: env:
@@ -66,10 +64,9 @@ jobs:
fi fi
- name: Deploy Edge Functions - name: Deploy Edge Functions
working-directory: apps/supabase
run: | run: |
# Deploy all edge functions (excluding _shared directory) # Deploy all edge functions (excluding _shared directory)
for dir in functions/*/; do for dir in apps/supabase/functions/*/; do
function_name=$(basename "$dir") function_name=$(basename "$dir")
# Skip _shared directory (it's a shared module, not a function) # Skip _shared directory (it's a shared module, not a function)
@@ -79,7 +76,7 @@ jobs:
fi fi
echo "Deploying function: $function_name" echo "Deploying function: $function_name"
supabase functions deploy "$function_name" --no-verify-jwt --project-ref $SUPABASE_PROJECT_REF supabase functions deploy "$function_name" --no-verify-jwt --project-ref $SUPABASE_PROJECT_REF --workdir apps
done done
- name: Remove Deleted Functions - name: Remove Deleted Functions