Skip to content

fix: trim non-essential dirs before arch-docs to reduce zip size #6

fix: trim non-essential dirs before arch-docs to reduce zip size

fix: trim non-essential dirs before arch-docs to reduce zip size #6

Workflow file for this run

name: Architecture Docs
on:
push:
branches: [main, master, canary]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trim non-essential directories
run: |
for dir in test tests __tests__ spec specs benchmarks bench docs documentation \
examples example fixtures migrations assets third_party caffe2 \
.yarn .cache e2e integration_tests testdata; do
rm -rf "$dir" || true
done
- uses: supermodeltools/arch-docs@main
id: docs
with:
supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }}
base-url: /openclaw/
- name: Install wrangler
run: npm install -g wrangler@3
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: wrangler pages deploy ./arch-docs-output --project-name=gtd-openclaw --branch=main