name: Pages on: push: branches: - main paths: - "workers/**" - ".github/workflows/pages.yml" - "wrangler.toml" - "CLOUDFLARE.md" workflow_dispatch: permissions: actions: write contents: read concurrency: group: pages cancel-in-progress: false jobs: deploy: name: Build and deploy runs-on: ubuntu-latest timeout-minutes: 15 environment: name: cloudflare url: https://documentation.openclaw.ai steps: - name: Check out uses: actions/checkout@v6 - name: Set up Node uses: actions/setup-node@v6 with: node-version: 24 cache: npm - name: Install run: npm ci - name: Deploy to Cloudflare env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} run: npx wrangler@4.88.0 deploy --config wrangler.toml - name: Dispatch live smoke env: GH_TOKEN: ${{ github.token }} run: gh workflow run docs-live-smoke.yml --ref main