diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 32d75319..d5aeca52 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -67,7 +67,8 @@ jobs: - run: pnpm turbo run docgen --filter=@evolution-sdk/evolution - - run: pnpm turbo run build --filter=@evolution-sdk/docs + # Build the docs with Next.js static export (output: export in next.config.js) + - run: pnpm --filter=@evolution-sdk/docs run build - id: cache-docs-output uses: actions/cache@v4 @@ -77,6 +78,11 @@ jobs: restore-keys: | docs-output- + # Add debug step to check if the output directory exists + - name: Debug output directory + run: | + ls -la docs/ + - uses: actions/upload-pages-artifact@v3 with: path: docs/out diff --git a/docs/package.json b/docs/package.json index 0198bcd7..6009766c 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,7 +7,7 @@ "dev": "next dev", "build": "next build", "start": "next start", - "export": "next build && next export", + "export": "next build", "copy-evolution-docs": "node scripts/copy-evolution-docs.mjs", "prebuild": "pnpm run copy-evolution-docs" },