scheduled-netlify-deploys

Trigger Netlify deploys on a schedule

Stars
5

Scheduled Netlify Deploys

You can make use of Scheduled Functions and Build Hooks to automatically deploy your Netlify site on a recurring schedule.

Here's how:

  1. Follow the Scheduled Functions documentation to enable the experimental feature for your new site

  2. Go to the site settings, create a new Build hook, and copy the URL

  3. Create an environment variable named BUILD_HOOK_URL with the URL from the previous step

  4. Copy the example function into your netlify/functions directory

  5. Deploy your site and wait for the builds to start showing