Deploy to Cloudflare pages from Github actions

Опубликовано: 27 Январь 2025
на канале: Ana's Dev Scribbles
455
17

Cloudflare pages is a free option to host your static websites, and you don't need to do a lot of work to set it up. It integrates well with Github and Gitlab, but if you want to control when does automatic deployment kick in, I'd suggest configuring a github action for it (or gitlab ci). This tut covers setup from creating a cloudflare page, setting up automatic deployment with cloudflare, then automatic deployment with github, what kind of api key you need and lastly what to do if you run into `This site can’t provide a secure connection`.
#cloudflare #docusaurus #githubactions #cloudflarepages

0:00 Intro
1:25 Setup Demo - github, docusaurus
2:25 Create Cloudflare page and automated deployment from Github
5:29 Setup custom domains
6:14 Disable automatic deployment from CF
7:04 Deploy from Github actions
9:41 Provide Cloudflare api token and account id

▬ 📖Links ▬
➡ Get a cheap domain from namecheap https://namecheap.pxf.io/c/5424059/40...,
➡ Get free 20$ in cloud credits with hetzner https://hetzner.cloud/?ref=CPXpIy0FngiI.