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
you could probably add your site to github and then use a github action
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
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
in github i know how to do, i only understand if have in cloudflare, because on docs i didnt find something
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
there is some example?
but what will be deployed?
I don’t know of any example. It will trigger a new build so the latest code in your repo will be built
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.