Files
dbx/.github/workflows/docs.yml
T
renovate[bot]andzipg 6e79ddc5b6 chore(deps): update actions/setup-node action to v7 (#13700)
* chore(deps): update actions/setup-node action to v7

* test(ci): follow the upgraded setup-node step in reusable releases

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
2026-11-03 01:18:49 +08:00

37 lines
1007 B
YAML

name: Deploy Docs
on:
push:
branches: [main]
paths: ["docs/**"]
workflow_run:
# Release and agent metadata are embedded during the static build, so wait for their R2 producers.
workflows: ["Sync Changelog to R2", "Agents Release"]
types: [completed]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
- uses: pnpm/action-setup@v6
- run: cd docs && pnpm install --frozen-lockfile && pnpm build
- name: Deploy to Cloudflare Workers
working-directory: docs
run: pnpm dlx wrangler@4 deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}