Skip to content

feat: add --publish flag to connect upload command#116

Merged
mobileoverlord merged 1 commit intomainfrom
lee-eng-1652
Mar 26, 2026
Merged

feat: add --publish flag to connect upload command#116
mobileoverlord merged 1 commit intomainfrom
lee-eng-1652

Conversation

@lee-reinhardt
Copy link
Member

Summary

  • adds --publish flag to avocado connect upload that publishes the runtime immediately after upload (draft → published)
  • adds publish_runtime() method to ConnectClient — calls PUT /api/.../runtimes/:id with {"runtime": {"status": "published"}}
  • publish runs after upload completion but before any --deploy-* processing
  • works in both the normal upload path and the "already draft" dedup path

Usage

# upload and publish
avocado connect upload dev --version dev-002 --publish

# full pipeline: upload, publish, deploy
avocado connect upload dev --version dev-002 --publish --deploy-cohort COHORT_ID --deploy-activate

Test plan

  • avocado connect upload dev --version X --publish uploads and publishes in one step
  • avocado connect upload dev --version X (no flag) still leaves runtime in draft
  • re-running upload with --publish on an already-draft runtime publishes it
  • --publish + --deploy-cohort + --deploy-activate chains correctly (publish before deploy)

@mobileoverlord mobileoverlord merged commit c726560 into main Mar 26, 2026
5 checks passed
@mobileoverlord mobileoverlord deleted the lee-eng-1652 branch March 26, 2026 00:05
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.

2 participants