Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(docs): use sparse checkout for nested demo assets (#321)
Maximilian Roos50f48944deb6
diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yamlindex fd7084f61..d04b7184f 100644--- a/.github/workflows/publish-docs.yaml+++ b/.github/workflows/publish-docs.yaml@@ -29,11 +29,13 @@ jobs:env:GH_TOKEN: ${{ github.token }}run: |- mkdir -p docs/static/assets- for file in $(gh api repos/max-sixty/worktrunk-assets/contents/demos --jq '.[].name'); do- curl -fsSL -o "docs/static/assets/$file" \- "https://raw.githubusercontent.com/max-sixty/worktrunk-assets/main/demos/$file"- done+ # Clone just the demos directory from worktrunk-assets+ gh repo clone max-sixty/worktrunk-assets /tmp/worktrunk-assets -- --depth 1 --filter=blob:none --sparse+ cd /tmp/worktrunk-assets+ git sparse-checkout set demos+ # Copy assets to docs/static/assets+ mkdir -p $GITHUB_WORKSPACE/docs/static/assets+ cp -r demos/* $GITHUB_WORKSPACE/docs/static/assets/- name: 🕷️ Build docsrun: zola build