Sorry, if my question has been asked before. I tried to search with various keywords.
I deploy from Obsidian note-taking app using a GitHub Digital Garden template.
Question
When I reach my monthly free limit 300 minutes’ build, I know Netlify will stop automatically triggering builds for my site.
My question is:
If I continue triggering deployments as per my daily routine, what happens to the backlog of deployments and subsequent builds? Will they be carried over and fired automatically?
Do I understand right that once the new month begins, Netlify will reset my build minutes, and any deployments that were not built due to exceeding the limit will not be lost and Netlify will automatically pick up where it left off? That would be great, because weeks down the line it would difficult to keep track of what notes need to be deployed and built again…
Best Practices
If my supposition is not right, what are some best practices to automate triggering builds of deployed but not built notes in Netlify or GitHub?
So I need to stop building, look for the date when I can start building again and only deploy from that date forward?
I am sure that is not true. I’m sure there’s a way to stash the deployments and make Netlify automatically build the backlog of deployed notes. But how…
That also means I need to go elsewhere to figure out a way around this. Because there must be a GH Actions or some other way to do this. But even that may involve getting a Pro version…
Are you really planning to use over 300 minutes every month? If yes, you can choose the Pro plan or use some other platform. You can use GitHub Actions on the free plan.
One last question, if you’ll allow me:
Will the at 23:50 each Monday cron job I settled on cut back on build time when done in batch? (I deploy to the main branch as per the template and would merge into production branch once at the selected interval.)
I don’t know how to answer that. I don’t know how long your site takes to build. Does it take an hour? So building once every Monday will use 4 to 5 out of 300 hours in a month. If it takes a minute, then it’s 4 mins a month.
I really don’t think you need to do this, unless your builds take an hour and you’re building at least once every day. But if they do, sure you’re free to setup your cron that way.
I guess I’ll have to get my own experience as I go along, but my site is build on a template and additional pages (notes) get added when I trigger the deployment.
I expect or hope to cut down on build times when a batch of say 100 files are sent to be built from the deploy branch when the GH Actions workflow triggers.
This is the workflow: it is a static site of individually uploaded markdown files of an Obsidian vault.
As I said, I’ll have to follow the stats in Netlify but so far I’m not too hopeful of going anywhere with this.
From what I’m seeing now, the deployments to main (triggered by the DigitalGarden template) are also counted as builds, so I’m not doing anything with the GH Actions script…
Was there somewhere I needed to switch off or something…?
Just checking back in to provide the solution, after all.
For others who want to do this, when you switch production branches, don’t forget to set Deploy only the production branch in the same window.
Then multiple changes take the same one minute as a single change.