aadcbbfcc6
Now that docs/ is the single source of truth that the marketing site renders at build time, edits to those files must run web CI and trigger the Cloudflare deploy. Add `docs/**` to the paths filter in both web-ci.yml and web-deploy.yml. A markdown-only fix in docs/ is now sufficient to redeploy oh-my-openagent.com — no companion web/ change needed.
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
name: Web CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, dev]
|
|
paths:
|
|
- "web/**"
|
|
- "docs/**"
|
|
- ".github/workflows/web-ci.yml"
|
|
pull_request:
|
|
branches: [master, dev]
|
|
paths:
|
|
- "web/**"
|
|
- "docs/**"
|
|
- ".github/workflows/web-ci.yml"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
format-lint-typecheck-build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: web
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.3.12"
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Format check
|
|
run: bun run format:check
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Type check
|
|
run: bun run type-check
|
|
|
|
- name: Next build
|
|
run: bun run build
|
|
env:
|
|
NEXT_TELEMETRY_DISABLED: "1"
|
|
|
|
- name: OpenNext (Cloudflare) build
|
|
run: bunx opennextjs-cloudflare build
|
|
env:
|
|
NEXT_TELEMETRY_DISABLED: "1"
|