This Github Actions workflow file lets you deploy multiple websites to Cloudflare Pages in subfolders instead of subdomains by using an intermediate repository to hold the built files.
- Create a new repository where the files will get deployed to. That is your build repo, and you should set up your Pages from that repo.
- Create a secret in your repo or organization called
DEPLOY_PAT
with the value of a GitHub personal access token of an account that has access to push to your build repo - Edit the values under
env
:- replace
AuthorNameGoesHere
with the author of the build repo - replace
BuildRepoNameGoesHere
with the name of the build repo - replace
UsernameOfPATGoesHere
with the username of the account you created the personal access token for
- replace