Publishing
publish-siteUse this when the user wants their WebTwizz site live on the web. The card first asks the user to confirm, then publishes the latest saved version to its public address and shows progress until it is live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set only by the WebTwizz card when the user presses Publish. Leave out. | |
| site_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| plan | No | ||
| error | No | ||
| stage | No | ||
| steps | Yes | ||
| checks | No | ||
| job_id | Yes | ||
| latest | No | ||
| status | Yes | queued, starting, building, done, needs_input, failed or stopped | |
| choices | No | When the summary ends by offering numbered options: those options, for the user to pick one | |
| site_id | Yes | ||
| summary | No | ||
| live_url | No | ||
| open_url | Yes | ||
| question | No | ||
| compiling | No | The preview is still updating with the finished change | |
| follow_ups | Yes | Things the user still has to do in WebTwizz, like connecting a database or adding a key | |
| undo_guard | No | Pass as only_if_latest when undoing, so newer work is never lost | |
| preview_url | Yes | ||
| confirmation | No | Set while the build waits for the user to approve something; answer with confirm-action | |
| files_changed | Yes | ||
| preview_ready | Yes | Whether the draft preview is running right now | |
| undo_point_id | No | Pass to restore-version to undo this change; only set while nothing has changed since | |
| live_frame_url | No | ||
| elapsed_seconds | Yes |