diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index e2666a3f..eccc23f1 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -3,10 +3,13 @@ name: Deploy static site to GitHub Pages on: push: branches: ["main"] + paths-ignore: + - 'research/**' + - 'interview/**' workflow_dispatch: permissions: - contents: write + contents: read pages: write id-token: write @@ -69,14 +72,6 @@ jobs: mkdir -p interview cp -r external/InterviewGuide/dist/* interview/ - - name: Commit generated sub-sites if changed - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add research/ interview/ - git diff --quiet && git diff --staged --quiet || git commit -m "Auto-update external sites" - git push || echo "No changes to push" - - uses: actions/upload-pages-artifact@v3 with: path: . @@ -88,5 +83,9 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Setup Pages + uses: actions/configure-pages@v5 + with: + enablement: true - id: deployment uses: actions/deploy-pages@v4 diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index f2c9e97c..088a0702 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -2,10 +2,6 @@ name: Deploy static content to Pages on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/data/resources.json b/data/resources.json index e8a20723..cd005951 100644 --- a/data/resources.json +++ b/data/resources.json @@ -8,7 +8,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/archive/2.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -20,7 +20,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/16-llm-fundamentals.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -32,7 +32,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/15-open-discussion.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -44,7 +44,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/09-salary-negotiation.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -56,7 +56,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/04-coding-questions.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -68,7 +68,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/14-llm-future-trends.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -80,7 +80,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/12-company-interview-cases.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -92,7 +92,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/03-agent-questions.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -104,7 +104,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/08-job-hunting-guide.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -116,7 +116,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/06-development-specialized.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -128,7 +128,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/05-algorithm-specialized.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -140,7 +140,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/13-model-evaluation.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -152,7 +152,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/07-career-transition.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -164,7 +164,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/10-hr-interview.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -176,7 +176,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/01-theory-questions.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -188,7 +188,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/11-mindset.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -200,7 +200,7 @@ "level": "入门", "type": "指南", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/04-interview/02-rag-questions.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -212,7 +212,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/16-sft-finetuning.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -224,7 +224,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -236,7 +236,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/19-context-engineering-tutorial-outline.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -248,7 +248,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/12-factor-agent-architecture.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -260,7 +260,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/23-lessons-learned.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -272,7 +272,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/22-parlant-agent-compliance-deep-dive.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -284,7 +284,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/18-context-engineering-guide.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -296,7 +296,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/15-agent-memory.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -308,7 +308,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/11-context-engineering-practices.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -320,7 +320,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/agent-evaluation-complete-guide.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -332,7 +332,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/13-context-engineering-resources.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -344,7 +344,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/17-claude-code-best-practices.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -356,7 +356,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/14-context-engineering.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -368,7 +368,7 @@ "level": "入门", "type": "教程", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/02-tech-stack/24-agent-sandbox-guide.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -380,7 +380,7 @@ "level": "入门", "type": "路线", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/05-roadmaps/learning-roadmap-development.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -392,7 +392,7 @@ "level": "入门", "type": "路线", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/05-roadmaps/learning-roadmap-algorithm.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -404,7 +404,7 @@ "level": "入门", "type": "路线", "url": "https://github.com/adongwanai/AgentGuide/blob/main/docs/05-roadmaps/AgentGuide开源学习路线(简易版本).md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -416,7 +416,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/learning-resources.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -428,7 +428,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/31篇LLM的经典论文速读版清单.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -440,7 +440,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/tools.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -452,7 +452,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/frameworks.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -464,7 +464,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -476,7 +476,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/official-guides.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -488,7 +488,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/ai-agent-production-challenges.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -500,7 +500,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/memory.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -512,7 +512,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/papers/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -524,7 +524,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/papers/agent_rl/Agent➕RL开源项目汇总.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -536,7 +536,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/papers/data_synthesis/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -548,7 +548,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/papers/agent_memory/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -560,7 +560,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/papers/agent_memory/一口气读完agent memory的21篇核心论文.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -572,7 +572,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/agent/papers/agent_memory/Agent Memory 核心论文汇总.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -584,7 +584,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/projects.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -596,7 +596,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/document-parsing.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -608,7 +608,7 @@ "level": "入门", "type": "资源", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/vector-db.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -620,7 +620,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/papers/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -632,7 +632,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/papers/agentic_rag/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -644,7 +644,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/papers/agentic_rag/agentic_rag.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -656,7 +656,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/papers/multimodal_rag/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -668,7 +668,7 @@ "level": "入门", "type": "论文合集", "url": "https://github.com/adongwanai/AgentGuide/blob/main/resources/rag/papers/graphrag/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -680,7 +680,7 @@ "level": "入门", "type": "项目索引", "url": "https://github.com/adongwanai/AgentGuide/blob/main/projects/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -692,7 +692,7 @@ "level": "入门", "type": "项目索引", "url": "https://github.com/adongwanai/AgentGuide/blob/main/projects/05-agent-workflows/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -704,7 +704,7 @@ "level": "入门", "type": "项目索引", "url": "https://github.com/adongwanai/AgentGuide/blob/main/projects/06-project-collections/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false }, { @@ -716,7 +716,7 @@ "level": "入门", "type": "项目索引", "url": "https://github.com/adongwanai/AgentGuide/blob/main/projects/04-end-to-end-projects/README.md", - "date": "2026-03-06", + "date": "2026-03-09", "featured": false } ] \ No newline at end of file diff --git a/tests/interviewguide_external_integration.test.sh b/tests/interviewguide_external_integration.test.sh index 427e0a8d..e57bb3cf 100755 --- a/tests/interviewguide_external_integration.test.sh +++ b/tests/interviewguide_external_integration.test.sh @@ -3,6 +3,7 @@ set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" WORKFLOW_FILE="$ROOT_DIR/.github/workflows/deploy-pages.yml" +STATIC_WORKFLOW_FILE="$ROOT_DIR/.github/workflows/static.yml" INDEX_FILE="$ROOT_DIR/index.html" GITIGNORE_FILE="$ROOT_DIR/.gitignore" EXTERNAL_DIR="$ROOT_DIR/external/InterviewGuide" @@ -11,6 +12,21 @@ grep -q "external/InterviewGuide/package-lock.json" "$WORKFLOW_FILE" grep -q "working-directory: external/InterviewGuide" "$WORKFLOW_FILE" grep -q "BASE_PATH: /AgentGuide/interview" "$WORKFLOW_FILE" grep -q "cp -r external/InterviewGuide/dist/\\* interview/" "$WORKFLOW_FILE" +grep -q "paths-ignore:" "$WORKFLOW_FILE" +grep -q "'research/\\*\\*'" "$WORKFLOW_FILE" +grep -q "'interview/\\*\\*'" "$WORKFLOW_FILE" +grep -q "uses: actions/configure-pages@v5" "$WORKFLOW_FILE" +grep -q "enablement: true" "$WORKFLOW_FILE" +if grep -Eq "git add .*research/.*interview/" "$WORKFLOW_FILE"; then + echo "workflow should not auto-commit generated research/interview directories" + exit 1 +fi + +# avoid dual-pages workflows both auto-triggering on push +if grep -q "^ push:" "$STATIC_WORKFLOW_FILE"; then + echo "static.yml should not auto-trigger on push" + exit 1 +fi grep -q "external/InterviewGuide/dist/" "$GITIGNORE_FILE" grep -q "external/InterviewGuide/node_modules/" "$GITIGNORE_FILE"