> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ravenna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish and edit

> Publish Ravenna workflows so they run on their trigger, edit them safely while they are live, pause or turn them off, and track the version each run used.

A workflow runs on its trigger only after you publish it. Use this page to publish, change a live workflow without disrupting it, and take a workflow offline.

## Lifecycle states

| State | Editor switch | Runs on trigger | In-flight runs | Editable |
| - | - | - | - | - |
| Draft | Off | No, and cannot be run manually | None | Yes |
| Published | On | Yes | Run | Yes |
| Paused | Paused | No | Finish | Yes |
| Deprovisioning | Not shown | No | Being stopped | No. Transient while a published workflow is deactivated or deleted. |
| Deleted | Not shown | No | Stopped | No. Soft delete, run history kept, no restore in the app. |

## Transitions

* **Draft to Published:** publish. Fails if any step has validation problems.
* **Published to Published:** publish again after edits. Publish lets in-flight runs finish on the old version; Stop & Publish stops them first.
* **Published to Paused:** pause. New runs stop; in-flight runs finish.
* **Published or Paused to Draft:** deactivate. In-flight runs stop immediately.
* **Paused to Published:** resume.
* **Any to Deleted:** delete. A published workflow is deactivated first, which stops in-flight runs.

## Editing live workflows

* Published and paused workflows are edited in place. Trigger-fired runs keep using the published version until the workflow is published again.
* Discard reverts the workflow to its last published version and removes all unpublished edits.
* Each publish saves a version snapshot. Runs record the version they used.
* Restoring an older version is API-only (`POST /workflows/revert` with a workflow ID and version ID). The revert replaces the workflow's steps; the workflow must then be published again.

## Validation at publish

Publishing validates every step: an action is chosen (no placeholders), required fields are set, dynamic values reference earlier steps that still exist, JSON fields parse, and action-specific settings are valid in the workspace. Validation problems block publishing.

## Permissions

* Workspace members and admins can create, edit, publish, pause, deactivate, and delete workflows. Guests cannot.
* Skipping a wait step on a running workflow is the only admin-only action.
* Ravenna Assistant can publish when the user asks. Do not publish unprompted. When in-flight runs exist, ask the user whether to stop them before publishing.

## Recommendations

* There is no staging environment and drafts cannot run. Publish with a narrow trigger filter first, then widen it.
* Default to Publish. Use Stop & Publish only when the old version must not finish.
* Prefer pausing over deleting when a workflow may be needed again.


## Related topics

- [Workflows](https://docs.ravenna.ai/documentation/workflows/overview.md)
- [Available tools](https://docs.ravenna.ai/documentation/mcp/tools.md)
- [Build Foundry functions](https://docs.ravenna.ai/documentation/foundry/actions.md)
- [Workflow builder](https://docs.ravenna.ai/documentation/workflows/workflow-builder.md)
- [Build lifecycle templates](https://docs.ravenna.ai/documentation/lifecycles/templates.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.