You can make use of Scheduled Functions and Build Hooks to automatically deploy your Netlify site on a recurring schedule.
Here's how:
-
Follow the Scheduled Functions documentation to enable the experimental feature for your new site
-
Go to the site settings, create a new Build hook, and copy the URL
-
Create an environment variable named
BUILD_HOOK_URL
with the URL from the previous step -
Copy the example function into your
netlify/functions
directory- You can change the frequency from
@hourly
to@daily
,@weekly
, or any valid cron expression
- You can change the frequency from
-
Deploy your site and wait for the builds to start showing