This section describes several different ways to trigger the deployment of Makers projects.
Git Auto-Trigger Deployment
After you associate a Makers project with a Git repository, the system automatically listens for push events and triggers deployments. Currently, by default, only commits to the main branch automatically trigger deployments.
Manual Triggering Deployment
In the Makers console, you can manually trigger deployment in the following ways:
Click Redeploy in the Project List to rebuild the latest deployment configuration.
Select a specific deployment record from the deployment record for redeployment.
Webhook
In addition to the methods above, you can also trigger deployments via webhooks. Each trigger event is a unique URL that initiates a new deployment through an HTTP POST request. This feature enables you to integrate Makers into your workflow.
Use cases:
Automatically build and deploy when the content in the headless CMS changes.
Implement a fully custom CI/CD process and deploy only when specific conditions are met.
Set a scheduled task to update the website at a fixed time.
Trigger deployment through a third-party service, such as auto-update after payment is successful.
Directions:
1. Enter the console, open the project settings page, and find the "Webhook" module.
2. Click Create a new webhook, enter the name, select the branch, and then click Confirm.
3. After creation, you can call the API via a POST request within the project to trigger the deployment of the corresponding branch.
Warning:
Webhook are uniquely associated with your project and do not require additional authentication. Please ensure these URLs are properly protected to avoid leakage. If unauthorized usage is suspected, immediately delete and regenerate the hooks.
Integrating Webhook with Common CMS Platforms
The integration methods vary for each CMS provider. Following is a step-by-step guide using Ghost as an example.
You can configure your Ghost site to trigger EdgeOne Makers deployments by creating a new custom integration. In your Ghost site's settings, go to the Integrations page and create a new custom integration.
Each custom integration can have multiple webhooks attached. Select "Add Webhook" and set the event to "Post Published". Then, paste your unique deployment hook URL into the target URL field. After this webhook is created, the EdgeOne Makers application will automatically redeploy whenever your Ghost site publishes an article.