Sources for data.diegolavalle.com.
To serve local version during development use Python.
python3 -m http.server --directory wwwMake sure you export an environment variable named GITHUB_API_TOKEN containing your GitHub token. This can also be done via scheme settings on Xcode or on Netlify's configuration.
In Netlify add the data branch to Site settings, Build & deploy, Branches, Branch deploys.
First time only, add the publish remote.
git remote add publish github.com:diegolavalledev/diegolavalle.comCreate the branch on the repository monitored by Netlify.
git push publish develop:dataAgain in Netlify create the subdomain based on the deployment branch by selecting it in Site settings, Domain management, Branch subdomains, Create branch subdomain. This action will trigger an immediate build so there is no need to push the branch again.
For publishing from developing branch push to the publish remote using the correct destination branch name.
git push publish develop:data