Hi team,

I’m trying to automate my GitHub Actions → QuantConnect Cloud deployment but every workflow attempt fails with one of:

  • Cannot push : Project name contains unsupported special character (.)
  • Invalid value for –project: Directory does not exist

Local setup:

  • macOS Sonoma (M1)
  • Python 3.12, Lean CLI 1.0.221
  • Local push works perfectly with:
  • lean cloud push --project project_name`

GitHub Actions:

  • Ubuntu runner, Python 3.12.12
  • .lean/project.json created dynamically with correct IDs
  • Secrets: ORG_ID, PROJECT_ID, PROJECT_NAME, USER_ID, API_TOKEN
  • Login succeeds, API calls succeed — only the cloud push step fails.

Questions: 

  • How should the runner directory / project folder be structured for lean cloud push to work?
  • Does the CLI support non-interactive CI pushes?
  • Must .lean/project.json reside inside the project folder?
  • Can the .rename behavior be disabled for CI?

Would appreciate direct technical guidance — I’ve tested 10 variants and verified it works locally but not in GitHub Actions.