CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
ci: build, test, and deploy docs to Cloudflare Pages
xf gongcbc53abd723a
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlnew file mode 100644index 0000000..77b8658--- /dev/null+++ b/.github/workflows/docs.yml@@ -0,0 +1,85 @@+name: docs++on:+ push:+ branches: [main]+ paths:+ - 'website/**'+ - 'cubepi/**'+ - 'pyproject.toml'+ - '.github/workflows/docs.yml'+ pull_request:+ paths:+ - 'website/**'+ - 'cubepi/**'+ - 'pyproject.toml'+ - '.github/workflows/docs.yml'++permissions:+ contents: read+ deployments: write++concurrency:+ group: docs-${{ github.ref }}+ cancel-in-progress: true++jobs:+ build-and-check:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: pnpm/action-setup@v4+ with: { version: 10 }+ - uses: actions/setup-node@v4+ with:+ node-version: 22+ cache: 'pnpm'+ cache-dependency-path: website/pnpm-lock.yaml+ - uses: astral-sh/setup-uv@v3+ with: { python-version: '3.11' }+ - name: Install Python deps+ run: uv sync --frozen --extra docs+ - name: Install website deps+ working-directory: website+ run: pnpm install --frozen-lockfile+ - name: Guard against hand-edited API mdx+ run: |+ if find website/docs/api -type f -name 'cubepi-*.mdx' 2>/dev/null | grep .; then+ echo "::error::Generated API MDX files were committed. Delete them." && exit 1+ fi+ - name: Build (runs griffe via prebuild)+ working-directory: website+ env:+ POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }}+ POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}+ run: pnpm build+ - name: Run vitest suite+ working-directory: website+ run: pnpm test+ - name: Upload artefact+ if: github.ref == 'refs/heads/main'+ uses: actions/upload-artifact@v4+ with:+ name: website-build+ path: website/build/+ if-no-files-found: error++ deploy-cloudflare:+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'+ needs: build-and-check+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: actions/download-artifact@v4+ with:+ name: website-build+ path: website/build/+ - name: Deploy to Cloudflare Pages+ uses: cloudflare/pages-action@v1+ with:+ apiToken: ${{ secrets.CF_API_TOKEN }}+ accountId: ${{ secrets.CF_ACCOUNT_ID }}+ projectName: cubepi+ directory: website/build+ gitHubToken: ${{ secrets.GITHUB_TOKEN }}+ branch: main