Automatically deploy changes
Your site can be built by sending a POST request to:
https://builder.statichost.eu/YOUR_SITE_NAME
In order to build your site automatically, you can register this URL as a webhook receiver, and your site will be built and deployed whenever the webhook is triggered. The webhook should be sent whenever your site (e.g. content) changes.
For example this site is built automatically by a webhook added to its GitHub repository (using the instructions below). Whenever new commits to the main branch are pushed, the webhook is sent and site is built and deployed. Similarly, if your site uses a (non-git) CMS, a webhook can most likely be added whenever changes occur, triggering a build.
Examples of how to do this for various providers are listed below.
GitHub
- Navigate to the repository of your site.
- Go to the
Settingstab. - Click on the
Webhookstab. - Click on the
Add webhookbutton. - Enter the URL above (with your actual site name) in the payload URL field.
- Select
application/jsonas the content type. - Select
Just the push event. - Press
Add webhook.
GitLab
- Navigate to your project (repository)
- Got to the
Settingsmenu entry - Click on the
Webhookssubmenu entry - Click on the
Add new webhookbutton - Enter the URL above (with your actual site name) in the URL field
- Select the trigger type
Push eventsand optionally specify the deployment branch - Check
SSL verification - Click
Add webhook
Codeberg
- Navigate to your project (repository)
- Go to the
Settingstab - Click on the
Webhookssidebar entry - Click on the
Add Webhookbutton - Click on the
Forgejomenu item - Enter the URL above (with your actual site name) in the Target URL field
- Select
POSTas the HTTP Method - Select
application/jsonas the POST Content Type - Select the
Trigger OnPush Events - Optionally specify a branch filter
- Click
Add Webhook