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.
Zapier auto-deploy Netlify
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, and let's connect!
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter
Top comments (6)
a good service, tried it a long time ago... ๐
tho, quickly found their free plan to be too tight, at least to my needs... ๐๐
Yeah can imagine, another one would be IFTTT but then you would have to write the webhook manually.
For now Zapier free is good enough but also testing IFTTT for another thing on the side
I'm a sucker for automation.
Any plans to automate distribution to DEV and hashnode?
Thanks Waylon, took some time this morning to move over to GitHub actions + schedules via that.
Indeed next step is looking in Dev and Hashnode.
Some comments may only be visible to logged-in visitors. Sign in to view all comments.