# Publish your extension

This guide describes how to publish an extension to the Azot extension catalog.

The extension catalog is shown on the website and in the desktop app.

## Before submitting

Make sure these requirements are met:

- `npx azot check --release` passes with no errors.
- Your extension already has at least one public release on GitHub or GitLab.

## Submit for review

1. Fork the [`azot-labs/azot-releases`](https://github.com/azot-labs/azot-releases) repository.

2. In your fork, open [`extensions.json`](https://github.com/azot-labs/azot-releases/blob/main/extensions.json) and add the extension source as a new line (format: `github:owner/repo` or `gitlab:group/project`) at the beginning of the array.

Do not change the order of existing entries.

```json
[
  "github:your-name/your-extension",
  "gitlab:existing3/extension3",
  "gitlab:existing2/extension2",
  "github:existing1/extension1"
]
```

3. Commit and push your changes.

4. Create a Pull Request in [`azot-labs/azot-releases`](https://github.com/azot-labs/azot-releases).

## After merge

After your Pull Request is merged, the extension will appear in the public catalog after the next sync (within one hour).

## Updating an already published extension

If the extension is already in `extensions.json`, you do not need to add a new entry for updates. New releases of new versions are pulled automatically based on the added repository/source.

A new entry is needed only if the extension repository/source has changed.
