How to deploy a git repo with a submodule (git repo) from CI/CD deployment
process for updating digital garden site for the first time:
- trying to deploy repo with private submodule
- create netlify public deploy key for nested private submodule.
- add deploy key to private submodule repo. settings
- change
build
command to have submodule update command:git submodule update --init --recursive && npx quartz build
- push obsidian changes to git repo
- go to folder with directory that you want to deploy with git and run
make sync
or : 1.@cd "content" && git fetch && git merge origin/main
- then run
npx quartz sync --no-pull
to push to repo and update code from upstream. - netlify will build from push to branch
v4
flowchart TD A[Start] --> B[Create Netlify Public Deploy Key on Github] B --> C[Add Deploy Key to Submodule Repo] C --> D[Update Build Command] D --> E[Push Obsidian Changes] E --> F[Run Sync Command to update Obsidian gitrepo in Quartz content folder.] F --> G[once git repo gets push to `main`; Netlify runs Build command] G --> H[check diegoguisande.com]