From 92b366d5628e9a23ce260fd30f67f767a88343cd Mon Sep 17 00:00:00 2001 From: yuhao Date: Mon, 23 Mar 2026 17:11:14 +0000 Subject: [PATCH] fix cli-hub-skill --- .github/workflows/deploy-pages.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 15340ec60..59745d0a5 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -41,13 +41,10 @@ jobs: - name: Generate meta-skill run: python3 .github/scripts/generate_meta_skill.py - - name: Copy catalog to hub with Jekyll front matter + - name: Copy catalog as static asset (bypass Jekyll) run: | - echo "---" > docs/hub/SKILL.md - echo "layout: null" >> docs/hub/SKILL.md - echo "permalink: /SKILL.md" >> docs/hub/SKILL.md - echo "---" >> docs/hub/SKILL.md - cat cli-hub-skill/SKILL.md >> docs/hub/SKILL.md + mkdir -p docs/hub/static + cp cli-hub-skill/SKILL.md docs/hub/static/catalog.md - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 @@ -55,13 +52,17 @@ jobs: source: ./docs/hub destination: ./docs/_site - - name: Copy raw SKILL.md to built site - run: cp cli-hub-skill/SKILL.md docs/_site/SKILL.md + - name: Rename catalog.md to SKILL.md in built site + run: | + mkdir -p ./docs/_site_final + cp -r ./docs/_site/* ./docs/_site_final/ 2>/dev/null || true + mv ./docs/_site_final/static/catalog.md ./docs/_site_final/SKILL.md + rm -rf ./docs/_site_final/static - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: './docs/_site' + path: './docs/_site_final' deploy: environment: