mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-24 20:09:02 +00:00
The forge mirror of this repo (git.hanzo.ai/hanzoai/docs) reads .hanzo/workflows and runs them: the last docs.hanzo.ai publish was deploy.yml building1d4202206c. With them gone, nothing publishes the site. This reverts commit891b8cc999. Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
44 lines
984 B
YAML
44 lines
984 B
YAML
name: Deploy Bot Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'apps/bot-docs/**'
|
|
- 'packages/**'
|
|
- 'pnpm-lock.yaml'
|
|
- '.hanzo/workflows/deploy-bot-docs.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: hanzo-docs-build-linux-amd64
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- run: pnpm build --filter=bot-docs
|
|
env:
|
|
NODE_OPTIONS: '--max-old-space-size=8192'
|
|
|
|
- name: Publish to the Sites plane
|
|
uses: https://git.hanzo.ai/hanzoai/ci/.github/actions/site@v1
|
|
with:
|
|
slug: bot
|
|
dir: apps/bot-docs/out
|
|
env:
|
|
KMS_CLIENT_ID: ${{ secrets.KMS_CLIENT_ID }}
|
|
KMS_CLIENT_SECRET: ${{ secrets.KMS_CLIENT_SECRET }}
|