From c6e0b8824c261d9ea9bf067a37750f3424477aa5 Mon Sep 17 00:00:00 2001 From: ruben-cytonic Date: Wed, 11 Feb 2026 12:16:07 +0000 Subject: [PATCH] fix(ci): resolve docs SEO sync push failure and add SEO to preview deploys - Fix stale ref rejection in docs-seo-aeo workflow by fetching the remote branch before force-with-lease push - Add SEO/AEO asset generation to deploy-docs workflow so preview deploys also include sitemap, llms.txt, and other generated assets Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy-docs.yml | 6 ++++++ .github/workflows/docs-seo-aeo.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 018e410..2125b25 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -41,6 +41,12 @@ jobs: working-directory: docs run: pnpm build + - name: Generate SEO/AEO assets + working-directory: docs + run: | + pnpm seo:check || true + pnpm seo:sync || true + # Production deploy (push to main) - name: Deploy to Production if: github.event_name == 'push' && github.ref == 'refs/heads/main' diff --git a/.github/workflows/docs-seo-aeo.yml b/.github/workflows/docs-seo-aeo.yml index 21a787e..3a44e73 100644 --- a/.github/workflows/docs-seo-aeo.yml +++ b/.github/workflows/docs-seo-aeo.yml @@ -72,6 +72,7 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" + git fetch origin "${BRANCH_NAME}" || true git checkout -B "${BRANCH_NAME}" git add docs/static/sitemap.xml docs/static/llms.txt docs/static/llms-full.txt docs/static/docs.json docs/static/docs-urls.txt docs/static/ai-index.json docs/static/sidebar.json git commit -m "chore(docs): sync generated SEO/AEO assets [skip ci]"