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
Settings
tab. - Click on the
Webhooks
tab. - Click on the
Add webhook
button. - Enter the URL above (with your actual site name) in the payload URL field.
- Select
application/json
as the content type. - Select
Just the push event
. - Press
Add webhook
.
GitLab
- Navigate to your project (repository)
- Got to the
Settings
menu entry - Click on the
Webhooks
submenu entry - Click on the
Add new webhook
button - Enter the URL above (with your actual site name) in the URL field
- Select the trigger type
Push events
and optionally specify the deployment branch - Check
SSL verification
- Click
Add webhook
Codeberg
- Navigate to your project (repository)
- Go to the
Settings
tab - Click on the
Webhooks
sidebar entry - Click on the
Add Webhook
button - Click on the
Forgejo
menu item - Enter the URL above (with your actual site name) in the Target URL field
- Select
POST
as the HTTP Method - Select
application/json
as the POST Content Type - Select the
Trigger On
Push Events - Optionally specify a branch filter
- Click
Add Webhook