Automate Netlify deployments with Zapier

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
No comments yet. Be the first to comment.
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

One of my goals for the new version is that I'll be able to auto-deploy my website.
I love to go remote camping, which means no internet for 3 days, it's amazing don't get me wrong. But I still want to be able to deploy my website and send out my emails and perhaps even tweet about it.
The first part to me is the most important one, getting the site redeployed.
As you may know, my site is built on Eleventy and hosted on Netlify, which works great.
Eleventy allows me to post an article with future dates, those will only be rendered on the day they should be active. So literally all we need to do is trigger a redeploy.

This button is literally all that needs to be pressed.
Luckily for us Zapier the amazing automation collection tool has a Netlify integration!
We can use Zapier to trigger a deployment on set times.
Head over to the Zapier website and signup for a free account.
Once you created the account, you'll be brought to your dashboard where we can create a new Zap.

We will need a scheduled event to trigger the Netlify deployment. So pick the Schedule button or search for the Zapier Schedule event.

I want this schedule to trigger every day, so in the next selection pick every day.

You can then state if it should run on weekends, and what time you want the trigger to run. I post even in the weekends, so yes, and want it auto deployed every morning at 07:00 SAST.

For the action, we search for Netlify.

There is only one action and that is Start Deploy.

On the next screen, you are asked to sign in to your Netlify account.

After connecting you can choose for which site your action should run.

We can then test our actions.
If we head over to our Netlify deploy section we should see the deployment.

It worked, we now auto-trigger a Netlify deploy using a Zapier scheduled time hook.
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter