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_PATwith 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
AuthorNameGoesHerewith the author of the build repo - replace
BuildRepoNameGoesHerewith the name of the build repo - replace
UsernameOfPATGoesHerewith the username of the account you created the personal access token for
- replace