Skip to content

fix: resolve deploy workflow failures since May 12#7

Merged
jpr5 merged 1 commit into
mainfrom
fix/deploy-workflow
May 15, 2026
Merged

fix: resolve deploy workflow failures since May 12#7
jpr5 merged 1 commit into
mainfrom
fix/deploy-workflow

Conversation

@jpr5

@jpr5 jpr5 commented May 15, 2026

Copy link
Copy Markdown

Summary

Fixes two bugs introduced by the supply chain hardening commit (b870fa2) that broke deploy-demo and deploy-supabase jobs on every push to main since May 12.

Bug 1 -- Missing repository variable guards: The DEMO_DEPLOY_REPOSITORY and DEPLOY_REPOSITORY repository variables are not configured in the CopilotKit fork. This caused the production remote URL to resolve to https://github.com/ (no repo path), producing fatal: repository not found. Fixed by adding job-level if guards that skip deploy-demo and deploy-supabase when those vars are empty.

Bug 2 -- Missing artifact download path: The download-artifact step for supabase was missing path: dist, so the build output extracted to the workspace root instead of the dist/ directory. The subsequent gh-pages command then failed with ENOENT: no such file or directory, stat 'dist'. Fixed by adding the missing path: dist parameter.

Test plan

  • Merge to main and verify the Deploy workflow passes (deploy-demo and deploy-supabase should be skipped cleanly, deploy-doc should succeed as before)
  • If/when repository variables are configured in the fork, verify the full deploy pipeline works end to end

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/.
@jpr5 jpr5 merged commit 056ba0d into main May 15, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant