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:

  1. trying to deploy repo with private submodule
  2. create netlify public deploy key for nested private submodule.
  3. add deploy key to private submodule repo. settings
  4. change build command to have submodule update command:
    1. git submodule update --init --recursive && npx quartz build
  5. push obsidian changes to git repo
  6. 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
  7. then run npx quartz sync --no-pull to push to repo and update code from upstream.
  8. 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]