Skip to content

eduardoboucas/scheduled-netlify-deploys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scheduled Netlify Deploys

Deploy to Netlify

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

    Creating a build hook
  3. Create an environment variable named BUILD_HOOK_URL with the URL from the previous step

    Setting an environment variable
  4. Copy the example function into your netlify/functions directory

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

    Build logs