From 1d6edaa1de79b8c84aa5fb4fa926102f902272e7 Mon Sep 17 00:00:00 2001 From: bybrooklyn Date: Tue, 31 Mar 2026 17:18:25 -0400 Subject: [PATCH] Fix docs.yml for docs/ subdirectory move MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install dependencies: add `cd docs &&` - Build docs site: add `cd docs &&` - Artifact paths: build → docs/build (both upload steps) - Cache path: node_modules → docs/node_modules - Trigger paths: remove stale root-level paths (docusaurus.config.ts, sidebars.ts, package.json, bun.lock, tsconfig.json, src/css/**, static/**) — all now covered by docs/** Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/docs.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a5b0c27..de1dbb8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,25 +6,11 @@ on: - master paths: - 'docs/**' - - 'src/css/**' - - 'static/**' - - 'docusaurus.config.ts' - - 'sidebars.ts' - - 'package.json' - - 'bun.lock' - - 'tsconfig.json' - '.github/workflows/docs.yml' - '.github/workflows/build.yml' pull_request: paths: - 'docs/**' - - 'src/css/**' - - 'static/**' - - 'docusaurus.config.ts' - - 'sidebars.ts' - - 'package.json' - - 'bun.lock' - - 'tsconfig.json' - '.github/workflows/docs.yml' - '.github/workflows/build.yml' workflow_dispatch: @@ -60,33 +46,33 @@ jobs: uses: actions/cache@v5 with: path: | - node_modules + docs/node_modules ~/.bun/install/cache key: bun-docs-${{ runner.os }}-${{ hashFiles('docs/bun.lock') }} restore-keys: | bun-docs-${{ runner.os }}- - name: Install dependencies - run: bun install --frozen-lockfile + run: cd docs && bun install --frozen-lockfile - name: Build docs site env: DOCS_URL: https://bybrooklyn.github.io DOCS_BASE_URL: / - run: bun run build + run: cd docs && bun run build - name: Upload built site artifact uses: actions/upload-artifact@v7 with: name: docs-site-${{ github.run_id }} - path: build + path: docs/build retention-days: 7 - name: Upload GitHub Pages artifact if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' uses: actions/upload-pages-artifact@v4 with: - path: build + path: docs/build deploy: if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'