eduardoboucas / scheduled-netlify-deploys

Trigger Netlify deploys on a schedule

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Trigger Netlify deploys on a schedule


Languages

Language:TypeScript 99.3%Language:HTML 0.7%