From 252ae80018c77d0ceed7eab97519f8ee549d7967 Mon Sep 17 00:00:00 2001 From: Jordan Ritter Date: Fri, 15 May 2026 08:56:05 -0700 Subject: [PATCH] fix: resolve deploy workflow failures since May 12 Two bugs introduced by the supply chain hardening commit (b870fa2): 1. deploy-demo and deploy-supabase fail when DEMO_DEPLOY_REPOSITORY / DEPLOY_REPOSITORY vars are not set (the CopilotKit fork has no repository variables configured). The production remote URL resolves to just 'https://github.com/' which is not a valid repo. Fix: add job-level 'if' guards to skip these jobs when the vars are empty. 2. deploy-supabase fails with ENOENT on dist/ because the download-artifact step was missing 'path: dist'. The upload step packages the dist directory contents, but without an explicit download path they extract to the workspace root instead of dist/. --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bd8fb8258..f65446220 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -107,6 +107,7 @@ jobs: deploy-demo: name: 🚀 Deploy (demo) + if: ${{ vars.DEMO_DEPLOY_REPOSITORY != '' }} runs-on: ubuntu-latest timeout-minutes: 5 needs: build-demo @@ -180,6 +181,7 @@ jobs: deploy-supabase: name: 🚀 Deploy (supabase) + if: ${{ vars.DEPLOY_REPOSITORY != '' }} runs-on: ubuntu-latest timeout-minutes: 10 needs: build-supabase @@ -218,6 +220,7 @@ jobs: uses: actions/download-artifact@v4 with: name: supabase-artifacts + path: dist - if: ${{ env.IS_SUPABASE_CONFIGURED }} name: 🔗 Supabase Link