Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

fix github pages build workflow

yuhao776569427f23
diff --git a/.github/scripts/update_registry_dates.py b/.github/scripts/update_registry_dates.py
index 6cec29eee..fb3eb7d47 100644
--- a/.github/scripts/update_registry_dates.py
+++ b/.github/scripts/update_registry_dates.py
@@ -19,7 +19,7 @@ def get_last_modified(harness_path):
def main():
repo_root = Path(__file__).parent.parent.parent
registry_path = repo_root / 'registry.json'
- dates_path = repo_root / 'registry-dates.json'
+ dates_path = repo_root / 'docs' / 'registry-dates.json'
with open(registry_path) as f:
data = json.load(f)
diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml
index 8941f1d3f..5ce302bdc 100644
--- a/.github/workflows/deploy-pages.yml
+++ b/.github/workflows/deploy-pages.yml
@@ -6,6 +6,8 @@ on:
- main
paths:
- '*/agent-harness/**'
+ - '.github/workflows/deploy-pages.yml'
+ - '.github/scripts/update_registry_dates.py'
workflow_dispatch:
permissions:
@@ -32,15 +34,16 @@ jobs:
- name: Generate registry dates
run: python3 .github/scripts/update_registry_dates.py
- - name: Prepare Pages content
- run: |
- mkdir -p _pages
- cp registry-dates.json _pages/
+ - name: Build with Jekyll
+ uses: actions/jekyll-build-pages@v1
+ with:
+ source: ./docs
+ destination: ./docs/_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
- path: '_pages'
+ path: './docs/_site'
deploy:
environment: