mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-29 07:01:44 +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
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Deploy Zen Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'apps/zen-docs/**'
|
|
- 'packages/**'
|
|
- 'pnpm-lock.yaml'
|
|
- '.hanzo/workflows/deploy-zen-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:
|
|
# 22, like the other nine deploy lanes here. pnpm/action-setup above
|
|
# fetches a pnpm that requires Node >= 22.13, so a 20 pin fails at THIS
|
|
# step — before install, before build — with "This version of pnpm
|
|
# requires at least Node.js v22.13".
|
|
node-version: 22
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- run: pnpm build --filter=zen-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: zen
|
|
dir: apps/zen-docs/out
|
|
env:
|
|
KMS_CLIENT_ID: ${{ secrets.KMS_CLIENT_ID }}
|
|
KMS_CLIENT_SECRET: ${{ secrets.KMS_CLIENT_SECRET }}
|