533aaa8112
The GitHub secret is POSTHOG_API_KEY but Next.js requires the NEXT_PUBLIC_ prefix to expose it to the client bundle.
31 lines
644 B
YAML
31 lines
644 B
YAML
name: docs-build
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
paths:
|
|
- "packages/kilo-docs/**"
|
|
pull_request:
|
|
paths:
|
|
- "packages/kilo-docs/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build docs site
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: ./.github/actions/setup-bun
|
|
|
|
- name: Build site
|
|
run: bun run --filter @kilocode/kilo-docs build
|
|
env:
|
|
NEXT_PUBLIC_POSTHOG_KEY: ${{ secrets.POSTHOG_API_KEY }}
|
|
|
|
- name: Run tests
|
|
run: bun run --filter @kilocode/kilo-docs test
|