feat(pages): optimize GitHub Pages artifact handling and improve build configuration

- Update vitest-reports artifact download paths to use .gh-pages-cache for better organization
- Fix .gitignore core dump pattern to be more general (core instead of /core)
- Update .pages structure with migrated documentation and configuration
- Refine Knip configuration to exclude .pages directory while keeping vite.config.ts
- Improve build-pages.sh script to use relative paths consistently for .pages directory

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-10-14 22:53:07 +00:00
parent 46d2fd594e
commit a02fc0f802
6 changed files with 29 additions and 36 deletions

View File

@@ -65,7 +65,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: vitest-reports
path: ./.pages
path: ./.gh-pages-cache/vitest-reports
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -79,7 +79,7 @@ jobs:
name: vitest-reports
branch: main
workflow_conclusion: success
path: ./.pages
path: ./.gh-pages-cache/vitest-reports
- name: Build static assets (with artifact reuse)
run: ./scripts/build-pages.sh