statichost.eu logo
Documentation

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

  1. Navigate to the repository of your site.
  2. Go to the Settings tab.
  3. Click on the Webhooks tab.
  4. Click on the Add webhook button.
  5. Enter the URL above (with your actual site name) in the payload URL field.
  6. Select application/json as the content type.
  7. Select Just the push event.
  8. Press Add webhook.

GitLab

  1. Navigate to your project (repository)
  2. Got to the Settings menu entry
  3. Click on the Webhooks submenu entry
  4. Click on the Add new webhook button
  5. Enter the URL above (with your actual site name) in the URL field
  6. Select the trigger type Push events and optionally specify the deployment branch
  7. Check SSL verification
  8. Click Add webhook

Codeberg

  1. Navigate to your project (repository)
  2. Go to the Settings tab
  3. Click on the Webhooks sidebar entry
  4. Click on the Add Webhook button
  5. Click on the Forgejo menu item
  6. Enter the URL above (with your actual site name) in the Target URL field
  7. Select POST as the HTTP Method
  8. Select application/json as the POST Content Type
  9. Select the Trigger On Push Events
  10. Optionally specify a branch filter
  11. Click Add Webhook