From a07e9a8e422a8904cfceb5cfb41d6fc125a40958 Mon Sep 17 00:00:00 2001 From: Kyle Felter Date: Wed, 27 May 2026 08:28:06 -0500 Subject: [PATCH] ci: Include OpenAPI spec in Fern preview artifact --- .github/workflows/fern-docs-preview-build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fern-docs-preview-build.yml b/.github/workflows/fern-docs-preview-build.yml index fe49d4957d..0fcd200571 100644 --- a/.github/workflows/fern-docs-preview-build.yml +++ b/.github/workflows/fern-docs-preview-build.yml @@ -15,7 +15,10 @@ # Workflow 1 of 2 for Fern doc previews. # -# Collects fern/, docs/, and PR metadata and uploads an artifact. +# Collects fern/, docs/, rest-api/openapi/, and PR metadata and uploads an +# artifact. fern/generators.yml references ../rest-api/openapi/spec.yaml, +# so the OpenAPI spec must travel with the artifact for the companion +# workflow's `fern generate` to resolve the API definition. # # The companion workflow (fern-docs-preview-comment.yml) runs after this one; # it skips cleanly when no artifact exists (e.g. skipped fork pull_request). @@ -27,6 +30,7 @@ on: paths: - 'fern/**' - 'docs/**' + - 'rest-api/openapi/**' - '.github/workflows/fern-docs-preview-build.yml' push: branches: @@ -34,6 +38,7 @@ on: paths: - 'fern/**' - 'docs/**' + - 'rest-api/openapi/**' - '.github/workflows/fern-docs-preview-build.yml' permissions: @@ -76,5 +81,6 @@ jobs: path: | fern/ docs/ + rest-api/openapi/ preview-metadata/ retention-days: 1