Auto deploy my site every day

I have a static site that collect data from my youtube channel (avinuteologia.com). Today, to keep it updated every day, i need click manually on redeploy on cloudflare pages. How i can make it run automatically daily?
8 Replies
Soham
Soham16mo ago
you could probably add your site to github and then use a github action
Paulo Coutinho
Paulo CoutinhoOP16mo ago
my site is already in a github repo there is some way that people already use or is more common? i see "hacks", like to a commit to a file everyday but i want understand if we have a more built-in way in cloduflare to do it redeploy every day
Soham
Soham16mo ago
You can use a GitHub action to redeploy every day, I'm sure there's something in the docs about it. Not sure about directly in cloudflare
Paulo Coutinho
Paulo CoutinhoOP16mo ago
in github i know how to do, i only understand if have in cloudflare, because on docs i didnt find something
Cyb3r-Jak3
Cyb3r-Jak316mo ago
There isn’t a built in way for Cloudflare. You could make a worker on a cron schedule call the api to deploy but that’s it
Paulo Coutinho
Paulo CoutinhoOP16mo ago
there is some example? but what will be deployed?
Cyb3r-Jak3
Cyb3r-Jak316mo ago
I don’t know of any example. It will trigger a new build so the latest code in your repo will be built
Mackenly
Mackenly16mo ago
This isn't a standard use case that CF should support imo. Best option would be to create a GitHub Action to do so every day. That's not a hack and follows devops best practices.

Did you find this page helpful?