Skip to main content

Repository Structure

Your workflow repository can be organized in any way you prefer. Here’s a simple example:

Manifest File

The manifest.yaml defines your workflow’s metadata, dependencies, and configuration:

Workflow Definition

The main workflow file defines the actual workflow logic. This can be placed anywhere in your repository, just make sure to reference it in the main property of your manifest:

Component Imports

As any other component, shared workflows can import and use various components from other files or packages:
You can reference: and all other components we have predefined on Compozy.

Publishing

To publish your workflow to the Compozy registry:
1

Prepare Your Repository

  • Initialize a GitHub repository
  • Set up CI/CD workflows
  • Include comprehensive documentation in README.md
2

Validate

Ensure your workflow configuration is valid:
3

Version and Release

  • Use semantic versioning (MAJOR.MINOR.PATCH)
  • Create GitHub releases with detailed changelogs
  • Tag releases (e.g., v1.0.0)
4

Submit to Registry

Once your workflow is ready for distribution:
After submission, our team will review your workflow to ensure it meets our quality and security standards. You’ll receive notifications about the review process and when your workflow is approved and listed in the registry.
Make sure your workflow follows these best practices:
  • Use semantic versioning for your workflow versions
  • Include comprehensive documentation in README.md
  • Test your workflow thoroughly before publishing
  • Use environment variables for sensitive configuration
  • Implement proper error handling and retry policies